Would it be possible to define layouts depending on the report type? ie. The layout size for PDFs would be different from the web layout.
是否可以根据报告类型定义布局?即。 PDF的布局大小与Web布局不同。
Let's say we publish the report to the web. The user has the option of exporting this custom report to PDF. We want to be able to specify how the report should look like when exported to PDF.
假设我们将报告发布到网上。用户可以选择将此自定义报告导出为PDF。我们希望能够指定导出为PDF时报表的外观。
1 个解决方案
#1
2
The layout has to be defined before the report is even rendered. The report has no advance knowledge of what form it is going to take when exported.
必须在报表呈现之前定义布局。该报告没有预先知道出口时将采取何种形式。
My advice is to either:
我的建议是:
- Create two separate reports with separate layouts depending on whether it is to become a PDF or a Webpage.
- Tweak your layout so it will export nicely to both formats.
创建两个具有单独布局的单独报表,具体取决于它是成为PDF还是网页。
调整您的布局,以便它可以很好地导出到两种格式。
#1
2
The layout has to be defined before the report is even rendered. The report has no advance knowledge of what form it is going to take when exported.
必须在报表呈现之前定义布局。该报告没有预先知道出口时将采取何种形式。
My advice is to either:
我的建议是:
- Create two separate reports with separate layouts depending on whether it is to become a PDF or a Webpage.
- Tweak your layout so it will export nicely to both formats.
创建两个具有单独布局的单独报表,具体取决于它是成为PDF还是网页。
调整您的布局,以便它可以很好地导出到两种格式。