print into a PCL-File without dialogbox

B

Braeu

Hello,

I need to print into a PCL File without any user activity. I use a
driver for a HP LaserJet4000 printer. When I print the activedocument
objekt in VBA, the printerdriver show a dialogbox for the filename of
the printfile.
How can I put the filename from VBA to the printerdriver without the
dialogbox?

Thank you for you help and sorry for my bad english!

Braeu
 
T

Tim P.

Sub CreatePRN()
'
Here is one that I used to print to PRN file... should be
the same... Hope this helps.

ActivePrinter = "Generic PostScript Printer"
Application.PrintOut FileName:="",
Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="",
PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, Collate:=True,
Background:=True, PrintToFile:= _
True, PrintZoomColumn:=0, PrintZoomRow:=0,
PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0,
OutputFileName:="TESTINGPOSTSCRIPT.prn", Append:=False
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top