07-23-2008, 11:15
|
Adam Boulad

Joined on 09-16-2007
Posts 541
|
Re: How to print on the selected printer
|
 
 
|
|
|
If you want to print to a non-default printer, don't get the HDC value from PrintStart, but instead use VB code like this:
Set Printer = Printers(4) 'select one of the connected printers Printer.Print "" 'initialize the printer
After these 2 lines, you can use the value of Printer.hDC with our Render method.
If you don't know the index of the printer you need, check the values in the DeviceName property as in Printers(index).DeviceName
Adam Boulad LEADTOOLS Technical Support
|
|
|
|
|
Report
|
|
|
|