Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing to a File

Status
Not open for further replies.

lakshman

IS-IT--Management
Feb 6, 2002
5
0
0
US
Hi

Please have a look at the following code.
We are using a postscript printer here.

**********************
For Each objPrinter In Printers ' Determine the
printer
If objPrinter.DeviceName = "HP Color LaserJet
PS" Then
printerSelected = True
Set Printer = objPrinter
Exit For
End If
Next

printer.print "Hello World"

************************

This is the code snippet that we are using to print to
a postscript printer.

The moment the print function is called a dialog pops
up asking for a filename. Is there a means to specify
the filename somehow using code and suppress the
dialog. We need this as we have this piece of code in
a ActiveX DLL.

Please help!!!

Thanks in advance
Lakshman
 
This would greatly help me also!
Anyone know?
Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top