Skip to main content

Hello,

 

We are using PDF inserts / Report Rules with our Sales Quotations.

This works for us, but is there a way to make this dynamic, so that a document connected to this Sales Quotation (conditional) will be inserted into the PDF.

We need to Include Custom Conditions with our Sales Quotation.

This to prevent making a PDF insert for each document.

We use SEND TO CONNECT as Default Printer.

 

 

Hi,

 

The PDF insert rule and the PDF insert feature only fetch files from the REPORT_PDF_INSERT_TAB table. So there is no straight-forward way to insert PDF from other tables.

What you can try is, somehow when generating the report xml data in the RDF, insert the PDF document that you want to insert with the PDF report in to the REPORT_PDF_INSERT_TAB table. Then in the XML data have the file name as a data attribute. Then in the report rule, instead of specifying the file name as you usually do, give the xpath by selecting it from the expression dialog.

This way, when you order the report the PDF will be inserted and the file name will be written in to the XML data. When the rule is executed, the file name is fetched from the XML data and the PDF which was inserted before will be fetched and inserted in to the report.

One thing you will have to look in to is how to remove these dynamicallyinserted PDF. As time passes the table will grow so you might want to clean this table from time to time with unwanted PDF.

Theoretically it should work. Try it and see.

Also, you print to the NO_PRINTOUT predefined logical printer. The SEND_*_TO_CONNECT is used for other reporting features.

 

Regards,