using the cete.DynamicPDF designer and ceTe.DynamicPDF.ReportWriter and a dplx template to build an invoice PDF receipt, I created a subreport with an embedded query. when i run the below command
var reportParms = new ParameterDictionary();
reportParms.Add("InvoiceNumber", invoiceID);
reportParms.Add("Id", Id);
Document document = report.Run(reportParms);
var fileContent = document.Draw();
I get duplicate invoice. with the same data showing up on multiple page, to be precise it is showing the same data on page 1 and 2. don't know what i am doing wrong