what I see in CrystalReports designer differs from what I see in CrystalReports viewer when I load a report programmatically. This is because in the designer I chnaged papersize to A4, while in the viewer it is Letter by default.
我在CrystalReports设计器中看到的内容与我在以编程方式加载报表时在CrystalReports查看器中看到的不同。这是因为在设计师中我将纸张文件化为A4,而在查看器中它默认为Letter。
So, how can I change in code (c#) default paper size to A4.
那么,如何将代码(c#)的默认纸张尺寸更改为A4。
1 个解决方案
#1
Viewer follows system settings (paper size for default printer). You can change paper size for underlaying report programmatically (report object PaperSize property); does it affect viewer defaults, I don't know.
Viewer遵循系统设置(默认打印机的纸张大小)。您可以通过编程方式更改纸张大小以覆盖报表(报表对象PaperSize属性);它不会影响查看器默认值,我不知道。
Our application changes paper size only for specific printers (POS ones), but it changes report default printer too and in that case viewer follows printer and paper size settings. CR version 9 - maybe later versions are more flexible.
我们的应用程序仅更改特定打印机(POS机)的纸张尺寸,但它也会更改报告默认打印机,在这种情况下,查看器会遵循打印机和纸张尺寸设置。 CR版本9 - 可能更晚版本更灵活。
#1
Viewer follows system settings (paper size for default printer). You can change paper size for underlaying report programmatically (report object PaperSize property); does it affect viewer defaults, I don't know.
Viewer遵循系统设置(默认打印机的纸张大小)。您可以通过编程方式更改纸张大小以覆盖报表(报表对象PaperSize属性);它不会影响查看器默认值,我不知道。
Our application changes paper size only for specific printers (POS ones), but it changes report default printer too and in that case viewer follows printer and paper size settings. CR version 9 - maybe later versions are more flexible.
我们的应用程序仅更改特定打印机(POS机)的纸张尺寸,但它也会更改报告默认打印机,在这种情况下,查看器会遵循打印机和纸张尺寸设置。 CR版本9 - 可能更晚版本更灵活。