March 10, 2025
Word Top Contributors:
PrintOut to PDF, but PDF corrupt
Report abuse
Thank you.
Reported content has been submitted
Try the following instead. It should save the file as a document in the location then create the PDF.
Dim Printer As String
ActiveDocument.SaveAs "X:\2013.docx"
With Dialogs(wdDialogFilePrintSetup)
Printer = .Printer
.Printer = "Adobe PDF"
.Execute
End With
Application.PrintOut PrintToFile:=False, _
Range:=wdPrintRangeOfPages, _
Item:=wdPrintDocumentWithMarkup, _
Copies:=1, _
Pages:="3-7,15", _
PageType:=wdPrintAllPages
With Dialogs(wdDialogFilePrintSetup)
.Printer = Printer
.Execute
End With
For more Word tips and downloads visit my web site
https://www.gmayor.com/Word_pages.htm
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
For more Word tips and downloads visit my web site
https://www.gmayor.com/Word_pages.htm
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
ActiveDocument.ExportAsFixedFormat OutputFileName:= _
"C:\Report.doc", ExportFormat:=wdExportFormatPDF, _
OpenAfterExport:=True, OptimizeFor:=wdExportOptimizeForPrint, Range:= _
wdExportFromTo, From:=1, To:=3, Item:=wdExportDocumentContent, _
IncludeDocProps:=True, KeepIRM:=True, CreateBookmarks:= _
wdExportCreateNoBookmarks, DocStructureTags:=True, BitmapMissingFonts:= _
True, UseISO19005_1:=False
This worked better yet. No need to mess with postscript and distiller. Simply creates the PDF.
Report abuse
Thank you.
Reported content has been submitted
1 person found this reply helpful
·Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
For more Word tips and downloads visit my web site
https://www.gmayor.com/Word_pages.htm
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Question Info
Last updated March 30, 2025 Views 3,390 Applies to: