Hi,
I am having real trouble using VBA to print a web page using cPrintURL - Everytime I try to print a longish webpage - all I get in the final PDF is an image of the first page, complete with scroll bars.
The weird thing is that if I go to the web page and manually print using the pdfCreator printer - it works just fine and i get my full page.
Code I am using is below - but it’s the same standard as is elsewhere on the web. Is there an option that I have missed somewhere?
With PDFCreator1
.cStart “/NoProcessingAtStartup”
.cOption(“UseAutosave”) = 1
.cOption(“UseAutosaveDirectory”) = 1
.cOption(“AutosaveDirectory”) = strTempDirectory
.cOption(“AutosaveFilename”) = pstrFileName
.cOption(“AutosaveFormat”) = 0 ’ 0 = PDF
.cOption(“OnePagePerFile”) = False
DefaultPrinter = .cDefaultPrinter
.cDefaultPrinter = “PDFCreator”
.cClearCache
.cPrintURL pstrURL, 150
.cPrinterStop = False
End With
Windows 7 64bit
latest PDFCreator
Anyone got any thoughts on this?
Laurie