LinePrinter Print Sample “Example XP FF 3.5” for VS 2008
This sample demonstrates the use of the Honeywell LinePrinter Utility to obtain a list of possible printers from the LinePrinter configuration file, ITC_CONFIG.XML, and create a simple report printout.
There are seven files that should be in your development directory when you start this project. They are:
File Name |
Purpose |
Example1.sln |
Microsoft Solution file. |
Example1.csproj |
Microsoft Project file. |
AssemblyInfo.cs |
Standard Visual Studio generated file. |
Form1.cs |
Sample Code. |
Form1.resx |
Microsoft Resource file. |
ITC_CONFIG.XML |
Configurations file for LinePrinter use. May be modified to customize your printing requirements. |
Readme.htm |
This file. |
There are no special requirements or dependencies for building this application.
BoldOff BoldOn Close EnumeratePrinters FooterEventEx FooterEventHandler FormFeed HeaderEventEx HeaderEventHandler LinePrinter LinePrinterException NewLineNoOrphan Open StatusMessageEventEx StatusMessageEventHandler StatusMessageTypes WarningMessageEventEx WarningMessageEventHandler Write
Load the project in Visual Studio 2008 and select “build”.
Please see Common Issues and Notes below for additional important information on building and running the application.
Start the application by clicking on the executable or
starting the debugger.
Select the appropriate printer from the combo box.
Enter the printer address and the Bluetooth PIN or Wi-Fi
port number if appropriate.
Select the desired options.
Make sure the printer is on and connected and press Print.
General:
Networked Printers:
Bluetooth Printers:
Serial Printers:
To modify your mobile computer settings, please see the documentation for that device.
To configure the configuration file, please see the “Printer Configuration File Components” section of the “Printing Resource Kit User's Guide” documentation.