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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reset PrintToFile setting?

Status
Not open for further replies.

JBU

Instructor
Nov 3, 2003
25
IN
I'm creating a macro that prints a document to a file. It works perfectly but I would like to reset the "Print To File" setting for the printer. Otherwise I will as default continue to PrintToFile. My Code:

Sub CreatePdf()
Dim PDFName As String
PDFName = "\\suppsrv1\Public\DistillerHotfolder\In\" & ActiveDocument.Name
If Right(PDFName, 4) = ".doc" Then
PDFName = Left(PDFName, Len(PDFName) - 4) & ".prn"
Else
PDFName = PDFName & ".prn"
End If
ActiveDocument.PrintOut _
PrintToFile:=True, OutPutFileName:=PDFName, Append:=False, Background:=True
' I need to reset the printer setting here!
end sub

Any suggestions?

Jens Busse
Workflow Consultant
CCI Europe A/S
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top