如何在 asp.net 报告服务中添加空白页

How to add an empty page in asp.net reporting services

我正在 asp.net 处理 rdlc 报告。我的公司希望我做的是只在第一页之后留下一个空白页,因为他们是双面打印的。内容在 tablix 组中,我不知何故只需要在第一页/第一个组项目之后添加一个空页面(有很多组项目来自 SQL)。非常感谢任何帮助。

试图在 RDLC 报告中实现这一点将是一个巨大的痛苦。

一个简单的解决方案是按原样将报告导出为 PDF,然后插入一个空白页。您甚至可以在保存之前插入页面。

这是将空白页插入现有 PDF 文件的代码。

String filepath = @"";
String outPutFilePath = @"";
PDFDocument doc = new PDFDocument(filepath);

// Insert empty page at 1 (previous to the second page, so after the first page).
doc.InsertPage(1);

// Save the file.
doc.Save(outPutFilePath);