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?
.cOption(“UseAutosave”) = 1
.cOption(“UseAutosaveDirectory”) = 1
.cOption(“AutosaveDirectory”) = strTempDirectory
.cOption(“AutosaveFilename”) = pstrFileName
.cOption(“AutosaveFormat”) = 0 ’ 0 = PDF
.cOption(“OnePagePerFile”) = False
DefaultPrinter = .cDefaultPrinter
.cDefaultPrinter = “PDFCreator”
.cPrintURL pstrURL, 150
.cPrinterStop = False
Windows 7 64bit
Anyone got any thoughts on this?