Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: How to print on the selected printer
Started by info@documentale.com at 07-23-2008 9:44. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  07-23-2008, 9:44
info@documentale.com is not online. Last active: 4/14/2008 11:20:44 AM info@documentale.com

Top 500 Posts
Joined on 10-27-2005
Posts 7
How to print on the selected printer
Reply Quote
VB6 with lead 14

PrintStart method starts a print job on the default printer.

But how to print on the selected printer and not on the default.

   Report 
  07-23-2008, 11:15
Adam Boulad is not online. Last active: 1/8/2009 3:31:15 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 541
Re: How to print on the selected printer
Reply Quote
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 
Post
LEAD Support Fo... » Developer » Printing » Re: How to print on the selected printer

Powered by Community Server, by Telligent Systems