I want to send file directly to printer the How ?

If you are a VB developer and have questions about using our products from VB, here is the place to post them.
Post Reply
kamleshvgujarathi
Posts: 39
Joined: Fri Jan 09 2004
Location: Bombay ( INDIA)
Contact:

I want to send file directly to printer the How ?

Post by kamleshvgujarathi »


If I want to send file directly to printer and I want to store file in PDF also then what is way ? No I am using following code using windows API.

Code: Select all

    l_strBuffer = Space(8192)
    GetProfileString "Windows", "device", "", l_strBuffer, Len(l_strBuffer)
    l_strDefaultPrinter = Trim(l_strBuffer)
 
    PDF1.Print l_strDefaultPrinter, 1
The original DefaultPrinter is a HP Laserjet (Networkprinter)

I am very Happy for QUICK RESPONCE to previous Problems

:roll:
KamleshvGujarathi
kamlesh@itshastra.com
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

To send a given file to the printer and convert it to pdf you need to print it to both your physical printer and to the PDF Printer that would be installed on your system when installing the PDF Converter.

You can find sample applications on using the PDF Printer at: http://www.amyuni.com/en/support/technotes.html

Thanks.
Post Reply