I am trying to create 1 document from multiple files. It works but, I would like to have one document without the pagebreaks at the end of each document. Is there a way to achieve this ?
This is the code i use at the moment.
Document result = new Document();
result.RemoveAllChildren();
PrognoseDataSource rapportHeader = new PrognoseDataSource(new PrognoseTemplate());
Document DocumentHeader = rapportHeader.Render(data);
result.AppendDocument(DocumentHeader, ImportFormatMode.KeepSourceFormatting);
PrognoseDetailDataSource rapportDetail = new PrognoseDetailDataSource(new PrognoseDetailTemplate());
Document DocumentDetail = rapportDetail.Render(_exploitatie);
result.AppendDocument(DocumentDetail, ImportFormatMode.UseDestinationStyles);
PrognoseTotaalDataSource rapportTotal = new PrognoseTotaalDataSource(new PrognoseTotaalTemplate());
Document DocumentTotaal = rapportTotaal.Render(data.Bedrijfstotaal);
result.AppendDocument(DocumentTotaal, ImportFormatMode.UseDestinationStyles);