Hi gents - we have a weird problem all of a sudden. Current (old) process:
- read .psr files and set file names to datawindow .dataobject property (path + file name)
- go through complicated routine to read the .psr contents, set them up in a datastore, and roll them into a pdf file via loop through datastore (print to pdf using older printer driver).
What we're trying to do now is bypass all that stuff (esp since our old printer driver is dead now) and just print via PB Native pdf and SaveAs(), or some similar easy export from the one datawindow array holding the various psr file pointers. However SaveAs() will not save a datawindow array in one shot. If I just do a SaveAs() on one of the array positions (i.e. a single .dataobject set into datawindow), I get a pdf ok with SaveAs(), it picks up the psr data ok, for one psr.
But trying to loop through datawindow array and print each array position to the same pdf file name (i.e. concatenate the psr's into a the single pdf) doesn't fly, it just overwrites the previous array position "print" and you end up with only the final position in the pdf.
Any magic solutions to this scenario? Thanks in advance, we're stuck!
https://community.adobe.com/t5/acrobat/how-do-i-install-the-pdf-printer-driver/td-p/9518994?page=1
Yes, as long as the PDF print driver supports "PostScript" then the PrintDataWindow() command in a loop will work great. I personally use the printers "MicroSoft Print to PDF" (included now with W10) and "PrimoPDF" (free) printer to PDF solution software all the time and they work great for me.
I cannot advise you about the older Adobe printer to PDF product as I have never used it. Defaulting instead to using the free PrimoPDF driver. However, the new free W10 MS driver works well ( limited testing on my part ) in the testing that I have done.
FYI: https://www.primopdf.com
HTH
Regards ... Chris