奇怪的Crystal报表格式化问题

奇怪的Crystal报表格式化问题

本文介绍了奇怪的Crystal报表格式化问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows Server 2003 SP2上使用Crystal Reports v10.0.x。我有一个.rpt文件,使用水晶报表引擎东西导出为PDF格式。

  new CrystalDecisions.CrystalReports.Engine .ReportDocument()。ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat,fullExportFileName); 

我有两个盒子的报告。这两个框都是Windows Server 2003 SP 2运行相同版本的Crystal Reports。让我们将这些框称为框1和框2.



到目前为止,所有报告都在两个框上都正常运行。突然,从昨天,一个框1,所有报告有一个格式问题。如果你知道我的意思,那么所有包含文本字段/文本框和段落文本文本的报告都会截断每一行上最少的几个字符,或者至少是它们的显示方式。



例如文本



<$ c $ p>今天是除了这个问题,我面对与
水晶报表以外的一切的一天。然后,在这之后有很多工作要做。我是
生病和累了这份工作。

显示为:

 今天是一个伟大的一天除了这个问题,我面对w 
水晶报表。然后,在这之后有很多工作要做。我a
生病和累了这份工作。

两个框上的代码是相同的,.rpt文件也是一样的。请帮助。

解决方案

检查Box 1上打印机设置的更改,因为Crystal在渲染报告时通常使用。如果更改默认打印机,则渲染将更改。


I am using Crystal Reports v10.0.x on Windows Server 2003 SP2. I have an .rpt file that gets exported into a PDF format using the Crystal Reports Engine thingy.

new CrystalDecisions.CrystalReports.Engine.ReportDocument().ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, fullExportFileName);

I have this report on two boxes. Both the boxes are Windows Server 2003 with SP 2 running the same version of Crystal Reports. Let's call these boxes box 1 and box 2.

Till now, all reports ran fine on both the boxes. Suddenly, since yesterday, one box 1, all reports have a formatting issue. All reports that have text fields/text boxes with running paragraph text truncate the right most few characters on every line, or at least that is how they display it, if you know what I mean.

For e.g. the text

Today is a great day for everything else except this problem I am facing with
Crystal Reports. And then, there's a whole lot of work to do after this. I am
sick and tired of this job.

is displayed as:

Today is a great day for everything else except this problem I am facing w
Crystal Reports. And then, there's a whole lot of work to do after this. I a
sick and tired of this job.

The code on both the boxes is the same, and the .rpt files, too, are the same. Please help.

解决方案

Check for changes to printer settings on Box 1, as these are generally used by Crystal when rendering a report. If the default printer is changed, the rendering will change.

这篇关于奇怪的Crystal报表格式化问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 22:49