Notifications
Announcements
SrsReportRunController
csharp
public class PDFMergeUtility { public static System.IO.MemoryStream mergePDFs(List<System.IO.MemoryStream> pdfStreams) { System.IO.MemoryStream output = new System.IO.MemoryStream(); using (PdfSharp.Pdf.PdfDocument outputDocument = new PdfSharp.Pdf.PdfDocument()) { foreach (var stream in pdfStreams) { PdfSharp.Pdf.PdfDocument inputDocument = PdfSharp.Pdf.IO.PdfReader.Open(stream, PdfSharp.Pdf.IO.PdfDocumentOpenMode.Import); for (int i = 0; i < inputDocument.PageCount; i++) { outputDocument.AddPage(inputDocument.Pages[i]); } } outputDocument.Save(output); } output.Position = 0; return output; } }
You can adapt the above to your D365FO server-side .NET code using permitted libraries or create an external .NET service to handle PDF merging.
Statement_<CustAccount>_<Date>.pdf
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Abhilash Warrier 732 Super User 2025 Season 2
André Arnaud de Cal... 413 Super User 2025 Season 2
Martin Dráb 289 Most Valuable Professional