IBM Computer, Laptops and Servers

Back Homepage Content Directory Resource Guide Blog

Print from eMbedded Visual Basic with PrinterCE

Laptop Battery

The manufacturer has not yet provided the relev... .. 4247 £30.03 1 IBM print server IBM print server As a global leader in the PC market, IBM develops, edge, reliabl... .. 4247 £539.92 1.

Thinkpad Print from eMbedded Visual Basic with PrinterCEBy , July 17, 2001
Get

According to the indictment, Jones would steal various IBM and Penguin computer servers from Verisign's warehouse in Virginia and sell them to Johnson. Johnson would then sell the servers to several individuals, who would sometimes place them for sale on eBay. As a result of this scheme, the indictment alleges that Jones and Johnson caused Verisign to lose more than $120, 000 worth of computer equipment. In the indictment, Jones and Johnson are charged in three counts with causing the interstate transportation of stolen property, namely IBM 330 and 335 servers, in violation of 18 U.S.C.

Microsoft started printing from your eMbedded Visual Basic applications as I walk you

Are you hesitant to migrate to Visual Studio(r) 2005 Maybe you're ready to upgrade to Visual Basic 2005 but feel a bit overwhelmed by ADO.NET 2.0 and the Visual Data Tools of this new release. on guide, I'll share with you the best practices, the latest features, and advanced data management techniques with Visual Basic 2005 and SQL Server or SQL Server Express 2005. Plus, I' world, end applications with Windows and Web forms.

Laptop Computers through some sample code.

is a Microsoft Certified Systems Engineer, who started programming in Visual Basic back in 1993, when it was version 3.0. Presently he is pursuing Microsoft Certified Systems Developer certification and was recently awarded the MVP title for his contributions to the Microsoft Visual Basic newgroups. server solutions based on MS SQL Server, MTS and MSMQ, based development, based on MS IIS, VBScript, ActiveX components and Visual Basic WebClasses. In whatever spare time he has, he enjoys traveling and spending time with his two daughters, Nicole and Caroline, and his girlfriend Mia. He works out at a local gym and ( level) enjoys ice hockey and soccer. He is generally considered a computer freak, and spends too much time at the computer.

Laptop Computer What You Need

Computer memory is the quickest, cheapest, and easiest way to improve the performance of your system. Find RAM memory upgrades for desktops, laptops, servers, and printers all backed by a lifetime warranty and guaranteed compatible with your computer. Shipping is an everyday low price of $1.99! Computer Memory Outlet sells memory compatible with all leading computer manufacturers like Dell, Apple, Compaq, HP, Sony, IBM, Lenovo, and many more.”

Desktop Computer .

Notebooks from FieldSoftware Products.

Lenovo A .

Hard Drive If you want, you can download this article .

Travelstar Gotchas

Gateway Make sure that the printer that you have (or are about to purchase) is .

Laptop Parts Be careful selecting which connection you want to have between your Pocket

Software PC and the printer. I have used infrared with success, but for certain

Hard Drives applications and environments a serial cable would be more suitable.

Electronics Languages SupportedEnglish

Canon It's a Digital World, Right?No matter how we strive to get rid of all

Desktop Pc those papers, there are still many situations where we cannot avoid them. There

Desktop Computers may be practical or even legal reasons why papers are still necessary, and if

Think Pad your users want to take their applications anywhere, you will have to support

Repair their printing needs as well. There is no native support for printing in the

Data Recovery Pocket PC platform, so you need some third-party software to make it happen.

Cisco PrinterCE Saved My DayFieldSoftware Products have provided us with

Keyboard various tools for printing from a Pocket PC, and the most interesting for

Monitor developers is . This tool enables us to connect and print to a number

Desktop of .

Infosys Because I was in need of printing from my Microsoft eMbedded Visual Basic

Refurbished Laptops application, I went out and bought a to satisfy my printing needs. It is a fairly large printer (at least

Wipro compared to my Pocket PC) but it still fits easily in my briefcase while on the

Lap Top move. And being only 3.1 pounds, it doesn't break my back either. It has color

Refurbished printing, and I like the fact that it supports USB and parallel, as well as

Memory infrared printing. I'm especially fond of the infrared port on the printer that

Intel can be adjusted to align with my Pocket PC.

As400
Figure 1: Pocket PC and Canon BJC-85 infrared ports

Averatec aligned.

Hardware The printer takes ordinary papers, and uses black or color cartridges. It can

Dual Xeon even be extended with a battery pack and a scanner module.

Storage PrinterCE enables applications to send commands to the printer to print

Seagate everything from ordinary text reports to advanced forms with graphics and color.

Computer Sales Things you can do with PrinterCE include:

Computer Hardware Textelect font, size, style, color, rotation, page position (or let

Printers PrinterCE automatically position multiple rows of text for you).

Technology Drawing objectsines, ellipses, rectangles, rounded rectangles. Select

Mainframe size, location, line width, color, fill, etc.

Samsung ImagesMP, JPEG, GIF, and PNG support. Select size, aspect ratio, rotation,

Computer Repair etc.

Used Computers Custom printer support for a variety of commercial and industrial printers.

Network See .

Digital Cameras Numerous optionselect from the or from code. You can even print a variety of !

Desktops Sample Printing ApplicationTo show the idea, I have created a printing

Cognos sample application using eMbedded Visual Basic. The sample includes two

Hosting different printing examplesne just demonstrates that it actually works, and

Netfinity the other shows the more advanced printing of a form.

Internet
Figure 2: Sample print

Cheap Computer application.

Digital Camera You start the first print sample by entering text in the Text field.

Printer Then tap the Test 1 button, and if everything works as it should, you

Xseries will get the entered text printed out on the printer. Not very advanced, but

Maxtor still enough to make you want more.

Data Storage In the second print sample, enter your name and address, and then print a

Hitachi form with graphics by tapping the Test 2 button.

Rational
Figure 3: Sample printout.

Websphere And you can see that this tool enables you to print even more advanced items,

Battery and it will be work for any field-reporting application.

It Support Code WalkthroughIf we start by looking at the first print sample, the

Western Digital complete code behind the Test 1 button looks like this:

Music Private Sub cmdTest1_Click()

Networks Dim PrinterCE As PRENGINECELib.PrinterCE

Toner

Cheap Laptops ' Create PrinterCE object

Wholesale Set PrinterCE = CreateObject("PrEngineCE.PrinterCE")

Brother

Netvista ' Print

Camera PrinterCE.SelectPrinter

Networking PrinterCE.DrawText txtTest1.Text

Sharp PrinterCE.EndDoc

Cheap Me.SetFocus

Windows End Sub

Monitors

Linux The PrinterCE variable is declared and created to hold an instance of

Computer Support the main Component Object Model (COM) object for printing. This object

Used Laptops implements the functionality for printing.

Cameras Start by opening the printer selection dialog with the SelectPrinter method

Scanners call. Then print the text of the TextBox with the method DrawText, and to finish

Panasonic the printing, call the EndDoc method. That's it! Finally, you have to set the

Workstation focus back to the current form, because it was removed when we opened the

Iseries printer selection dialog.

Backup In the second print sample, the following is the code behind the Test 2

Information Technology button (somewhat shortened):

Routers Private Sub cmdTest2_Click()

180gxp

Notebook Battery Dim PrinterCE As PRENGINECELib.PrinterCE

Security

Lotus ' Create PrinterCE object

Virus Set PrinterCE = CreateObject("PrEngineCE.PrinterCE")

Thinkpad T42

Thinkpad 600 ' Print

Thinkpad 600e PrinterCE.SelectPrinter

Thinkpad 570 PrinterCE.PrOrientation = vbPortrait 'Force to portrait mode

Thinkpad 600x PrinterCE.ScaleMode = vbInches 'Everything in inces

Thinkpad 390x PrinterCE.PrLeftMargin = 0.5

Thinkpad A31 PrinterCE.PrTopMargin = 0.7

Thinkpad X20 PrinterCE.PrRightMargin = 0.5

Bios Update PrinterCE.PrBottomMargin = 0.7

Laptops PrinterCE.DrawWidth = 0.02

Toshiba 'Force printer margins to 1/2" all around

Laptop Battery

Thinkpad 'Draw major rectangles and lines

Microsoft PrinterCE.DrawRect 0, 0, 5.7, 0.5

Laptop Computers 'Draw a shaded rectangle

Laptop Computer PrinterCE.FillColor = vbLightGray

Desktop Computer PrinterCE.FillStyle = 0 'picFSSolid

Notebooks PrinterCE.DrawRect 0, 0, 5.7, 0.25

Lenovo PrinterCE.DrawLine 2, 0, 2, 0.5

Hard Drive PrinterCE.DrawLine 3.8, 0, 3.8, 0.5

Travelstar

Gateway 'Draw text strings

Laptop Parts PrinterCE.FontSize = 12

Software PrinterCE.FontBold = True

Hard Drives PrinterCE.ForeColor = vbBlack

Electronics

Canon .

Desktop Pc .

Desktop Computers .

Think Pad

Repair PrinterCE.JustifyHoriz = vbLeft

Data Recovery PrinterCE.FontSize = 16

Cisco PrinterCE.DrawText txtName.Text, 0.5, 1.2

Keyboard PrinterCE.DrawText txtAddress1.Text

Monitor PrinterCE.DrawText txtAddress2.Text

Desktop

Infosys PrinterCE.DrawWidth = 0.01 'Draw very thin line

Refurbished Laptops PrinterCE.DrawLine 0, 3, 7.5, 3

Wipro PrinterCE.EndDoc

Lap Top

Refurbished Me.SetFocus

Memory

Intel End Sub

As400

Averatec As you can see, you start off as before by creating the PrinterCE object, and

Hardware in addition to selecting the printer, you also set other properties on the

Dual Xeon printout, like orientation, scale mode, margins, and so on. To draw line and

Storage rectangles, use methods like DrawLine and DrawRect. Attributes for drawing are

Seagate set using properties like FillColor, FillStyle, DrawWidth, and so on.

Computer Sales The first print sample already used the DrawText method, and now you

Computer Hardware can also position the text output by adding an X and Y parameter

Printers to that method call. Finish off the same way as before.

Technology With PrinterCE comes an eMbedded Visual Basic code module called that includes the necessary declarations for

Mainframe setting various properties.

Samsung For a complete example, you can download this article's .

Computer Repair ASCII PrintingIncluded with PrinterCE is also an object (AsciiCE2) that

Used Computers enables you to send and receive ASCII text strings, and blocks of data or

Network control functions directly on your printer from the Pocket PC. When used with

Digital Cameras certain printers that also feature magnetic card readers or smart card readers,

Desktops the AsciiCE2 control provides methods to read the data from those readers.

Cognos An example similar to the first print sample above using AsciiCE2 would look

Hosting like this:

Netfinity Dim AscPr As PRENGINECELib.AsciiCE2

Internet Set AscPr = CreateObject("PrEngineCE.AsciiCE2")

Cheap Computer ' Select Ascii Printer port values

Digital Camera If AscPr.SelectPort(PORT_IR, S_DONTCARE, S_DONTCARE) Then

Printer AscPr.Text "Hello Printing World!" & vbCrLf & "Another Line"

Xseries AscPr.FormFeed

Maxtor End If

Data Storage AscPr.ClosePort ' Done with the port for now

Hitachi

Rational Printing AnywhereAs you see, the printing you can do from a Pocket PC

Websphere is impressive. Your users working with sales could print their agreements while

Battery facing the clientaybe making the sale just because of that. The field-service

It Support engineer could print the service report right there and also any order of

Western Digital additional parts.

Music A common application is to print out receipts that can be signed and

Networks delivered on the spot. There are even smaller printers especially suitable for

Toner such needs.

Cheap Laptops The mobile workers don't even have to bring the printer with them. With

Wholesale infrared, they can use a stationary printer to print while they stop somewhere

Brother (i.e., at the office). Printers like the can be used in such an application. They could

Netvista even have a printer mounted in their car to relieve them from carrying it

Camera around.

Networking The only limitation is your imagination!

Sharp ConclusionYou now have the power to print from your eMbedded Visual

Cheap Basic application on the Pocket PC. Even if we would like to get rid of all

Windows those papers, they are still needed in many places. You now have skills to go on

Monitors and add printing to your own applications!

Linux Related Articles:

Computer Support Not

Used Laptops All Record Sets Are Created Equal/A>

Cameras function mail()

Scanners {

Panasonic mail_str="mailto:?subject=PocketPC.com"

Workstation mail_str= mail_str + "&body=I found this interesting information that you may find useful on pocketpc.com. "

Iseries mail_str=mail_str + "Check it out at, " + location.href

Backup location.href=mail_str

Information Technology }

Routers

[ Comment, Edit or Article Submission ]

Share this:

Add To Yahoo MyWeb Add To Google Bookmarks Add To Furl Fav This With Technorati Add To Newsvine Add To Bloglines Add To Ask Add To Windows Live Add To Slashdot Stumble This Digg This Add To Del.icio.us Add To Reddit

More about:

Oct November 2008 Dec
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            

IBM Computer, Laptops and Servers Blog on Technorati Related Blog of IBM Computer, Laptops and Servers on Sphere
Content Directory
Resource Guide


PC World Business Hardwares Softwares and Services

Website Links
IBM Computer, Laptops and Servers Copyright © 2008 www.ibmfans.com. All rights reserved. Site Map
Homepage | Blog | Advertise | Privacy Policy | Disclaimer | Contact Us | Links