I saw that in your Invoice Demo on the PDF Generator page, you could select multiple invoices, and have them print out in a single pdf.
However, for the report writter, your demo only has you selecting one invoice. I'm wanting to be able to print out multiple invoices for our customers but use they layout built in report writer.
Suggestions? I'm thinking that I may need to just call the drawtopdf multiple times, changing my invoice number each time, but that's kind of ugly.
Multiple reports for reportwriter
Re: Multiple reports for reportwriter
Support · Oct 1, 2008Hello,
The easiest way to do this is to create a Document object and pass that to the Run method of DocumentLayout once fore each invoice. Something like this:
Document document = new Document();
DocumentLayout reportDocument = new DocumentLayout("Report.dplx");
//Repeat this code for every Invoice
ParameterDictionary parameters = new ParameterDictionary();
parameters.Add("InvoiceNumber", invoiceNumber);
reportDocument.Run(document, parameters);
Thanks,
ceTe Software Support Team