This project has moved and is read-only. For the latest updates, please go here.

AppendReport for iTextSharp?

Jun 16, 2012 at 3:34 PM

Hi,

 

I would like to ask on how to do the "AppendReport" feature using iText?

 

I tried doing the following example, but only 1 report is generated!

DoddleReport.iTextSharp.PdfReportWriter writer = new DoddleReport.iTextSharp.PdfReportWriter();           

var MainReport = new Report(AttendanceMarking.ToReportSource(), writer);

var report = new Report(AttendanceMarking.ToReportSource(),writer);

 

MainReport.AppendReport(report); //way 1 (not working)

//writer.AppendReport(MainReport, report); //way 2 (not working as well)

return new ReportResult(MainReport, writer);

 

Did I wrote it wrong, or what should I do to make it work?

 

 

Thanks for any advice in advanced!

Richard

Aug 1, 2012 at 5:09 AM

Hi Richard,

I didn't actually write the iTextSharp PdfReportWriter (it was contributed by the community), but I can confirm from the code that it does not presently support the AppendReport feature. As I'm not familiar enough with that library I probably won't be able to get to it myself.

If you're able to get it working and could send a pull request I'm sure many people would appreciate that!