在IIS上发布后,默认页面设置在Crystal报表中不起作用

问题描述:

亲爱的所有人,

我创建了一个水晶报表,在其中使用了在默认打印机中创建的自定义页面(例如,宽度为8.50英寸,高度为5.84英寸的凭证).

问题是,当我从代码运行应用程序时,它会设置我在Crystal Report的默认设置中给出的页面.但是在IIS上发布后,它被打印在A4页面上而不是在定义的页面上打印.

寻找适合您的有价值的解决方案

预先感谢,

Supriya

Dear All,

I have created a crystal-report in which I used a custom page(e.g voucher having width: 8.50 In and height: 5.84 In) created in my default printer.

The problem is that when I run the application from code it sets the page which I gave in default setting of my Crystal Report.But after publishing on IIS it''s being printed on A4 page not on page defined.

Looking for valuable solutions of yours

Thanks in advance,

Supriya



请检查此 MSDN论坛 [ ^ ]

这可能对您有帮助,

谢谢
-Amit.
Hi,

please check this MSDN forum[^]

this may help you,

thanks
-Amit.


尝试这个技巧,就这么简单

在打印设置-Visual Studio 2005"下选择无打印机"选项a> [ ^ ]
在打印设置-Visual Studio 2008"下选择无打印机"选项a> [ ^ ]

编辑


我不确定您的代码,请检查此答案.
Crystal报表页面大小 [
Try this trick, that''s all

Select the "No Printer" Option Under Print Setup - Visual Studio 2005[^]
Select the "No Printer" Option Under Print Setup - Visual Studio 2008[^]

EDIT


I''m not sure about your code so check this answer.
Crystal report page size[^]