简体   繁体   English

报表查看器始终打印纵向

[英]Report Viewer always print portrait

Currently, I am using Crystal Report and C#. 当前,我正在使用Crystal Report和C#。 My report type is landscape and its show correctly in report viewer but when I print, That report print as the portrait. 我的报告类型是横向,并且可以在报告查看器中正确显示,但是当我打印时,该报告将以纵向打印。

I also try by adding like this => 我也尝试通过添加这样的=>

 report.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.Landscape;

But it's not working. 但这不起作用。 I already change the report orientation in crystal report as Landscape. 我已经将水晶报表中的报表方向更改为“横向”。 But it's still not working. 但是它仍然无法正常工作。

All of the printer settings is landscape. 所有打印机设置均为横向。 (Currently, I am testing with Microsoft OneNote). (当前,我正在使用Microsoft OneNote进行测试)。

Previously, These reports are working properly. 以前,这些报告运行正常。 But I have no idea why it's not working now. 但是我不知道为什么现在不起作用。

Could u please provide me a possible solution? 您能给我一个可行的解决方案吗?

That one is because of Crystal Report Run-time version. 那是因为Crystal Report运行时版本。 At the beginning, I just installed the version CRRuntime_64bit_13_0_23 And then I just down grade to CRRuntime_64bit_13_0_12 (but i forgot this part and i don't think it won't effect). 刚开始,我只是安装了CRRuntime_64bit_13_0_23版本,然后我将其降级到CRRuntime_64bit_13_0_12 (但我忘记了这一部分,我认为这不会起作用)。

That's why that error is occur.Because i tested on another computer that install CRRuntime_64bit_13_0_23 and It is working.That answer is may be or may be not the answer for u but that one solved my problem. 这就是为什么发生此错误的原因。因为我在另一台安装了CRRuntime_64bit_13_0_23计算机上进行了测试,并且该计算机正在运行。该答案可能是您的答案,也可能不是答案,但这解决了我的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM