Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have this macro to print reports to the pdf printer (PDF-XChange 3.0)
The printer preferences has a lot op options there like quality of pictures, file name, paper size, etc. You can also put this preferences into profile. Very userfull.
Now how can I set my variables when printing through a vbs macro. Or select the right profile?
This is my command line now, but it needs to be extended with variables or profile:
ActiveDocument.PrintReport oReport, "PDF-XChange 3.0",false
Thanks,
Johan Vermeulen
K3 Business Solutions.
Hi Johan,
can I see that macro please ?
Regards,
Hi,
There is a lot of code, but that's more about getting the report, getting variables from tables etc. This question is about the call to print the report, usting the pdf printer
function printReportPDF(oReport, pdfOutputFile)
ActiveDocument.PrintReport oReport, "PDF-XChange 3.0",false
end function
So the question is: how can I pass variables to the pdf printer (other then 'oReport').
I've tried changing the registry settings of the printer through code, buy you can only change some parameters, not the output directory.
Would be great if you know something.
Thanks,
Johan.