水晶报表服务器和开发机器上呈现不同报表、水晶、不同、服务器

2023-09-04 23:32:41 作者:微笑的起点

我工作的一个ASP.Net应用程序(.NET 1.1)使用Crystal Reports 2003年,我创建了一些文本对象和数据字段(报告标题,公司名称,日期等),检索报告从数据集。他们中的大多数都使用默认的字体(宋体/ 10PT)。

I'm working on a ASP.Net application (.Net 1.1) with Crystal Reports 2003. I have created a report with some Text Objects and Data Fields (Report title, Company title, Date, etc.) which are retrieved from a DataSet. Most of them are using the default font (Times New Roman / 10pt).

一切看起来很好的开发机器上,但是当我安装应用程序服务器和打印报告,几乎所有的领域都搞砸了。

Everything looks fine on the development machine, but when I install the application to the server and print the report, practically all of the fields are "messed up".

通过搞砸了我的意思是:

By "messed up" I mean:

字段看起来好像它们的宽度和高度被减小,这导致了裁剪顶部和/或文本对象的底部的一部分或包装的内容和在两行中显示它 在文本对象之间的垂直间距略有增加 在报告片段之间的垂直间距已增加

推荐答案

在服务器计算机上我有两个不同的打印机安装了POS打印机这是不再使用,而微软XPS文档写入。删除这两个,并重新配置其他的人以相同的设置,在开发计算机有后。报告是固定的。

On the server machine I had two different printers installed a POS printer which was not used anymore, and the "Microsoft XPS Document Writer". After deleting both of these, and reconfiguring the other ones to same settings as the development machine had. Reports were fixed.

我不知道如果这有助于任何人,但是如果遇到类似的问题,请与您的打印机设置摆弄,因为这种行为似乎与打印机,没有水晶报表本身。

I'm not sure if this helps anyone, but if you encounter a similar problem, try fiddling with your printer settings, because this behavior seems to be related to printer, not Crystal Report itself.