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
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