Attached is the Web14 ReportPrinting with PDFtools
All I have done is created a new menu Item called Print Test which calls the MailboxesReport which is normally called by Report\Options then Download Link.
I have placed a trace p_web._trace('loc:PDFName ' & CLIP(loc:PDFName)) in Prime Report Options when run in Web Mode
When I run Report\Options then Download Link the report is generated and I get a download link. The file nominated in loc:PDFName is in the report folder exactly as in loc:PDFName.
When I run exactly the same report from Print Test The generated PDF is displayed on the screen and even though loc:PDFName has a location and filename pointing to the report folder no file is generated in that folder at any time.
So my first question is:- What makes the MailboxesReport procedure create a $$$$nnnn.pdffile in the web\report folder ready to be downloaded when called from Report\Options then Download, but does not create a file in that folder when the report is called directly from a menu, or I assume , from a source procedure. Alternatively what do I do to the MailboxesReport so that it just creates the file in the report folder and then exits without displaying the pdf.
My reason for the question is that I want to create a source procedure which will loop though a table and for certain values in a field call a report procedure, limited to a unique recordGUID.
I then want to generate a report, take the created pdf in the web\report folder, copy it somewhere with a name allocated from within the report and then use pdftools to attach additional pages to the single page that the report generates.
I don't want to see the report I just need it to be created somewhere where I can access it.
I had this working with SoftVelocity ReportToPDF but I just can't get the file to just be saved.
[attachment deleted by admin]