Crystal Reports VS 2008 不同的换行行为

发布于 2024-08-02 11:30:11 字数 743 浏览 4 评论 0原文

我有一个 7.5 英寸宽的文本框,我设置了 Can Grow。在文本框中,我放置了一个 TEXT 数据库字段。我将该字段设置为使用 RTF 格式。当我将报告导出到在开发人员机器上的 PDF 中,我能够在应有的位置进行自动换行(在使用右边距进行欺骗之后),但是,当我在服务器上导出报告时,我比开发时更快地进行自动换行。 Crystal Reports VS 2008 运行时。

这里有一些更多信息:报告的 PDF 是由开发计算机(来自 VS 2008)和服务器上的 ASP.NET 应用程序生成的;我正在使用

我尝试过的 到目前为止的一些想法:

我发现写字板不会将页边距保存到 RTF 文档中,它总是使用上次使用的页边距设置,即 1.25" LR 和 1" TB

我尝试编辑 RTF 源文件并进行编辑 。添加适当的页边距: \margl720\margr720\margt720\margb720 将所有页边距设置为 720 缇 (0.5")。

我尝试将写字板的页边距默认设置为 0.5"。但这对于每个用户来说都是不同的。我以特定用户身份运行 ASP.NET 应用程序的应用程序池。我尝试在该用户下设置它,但没有任何更改。是否有可能水晶报表是在不同的用户下生成的?或者水晶报表总是使用特定用户来获取此信息?

在服务器上的设置不起作用后,我将开发计算机上的边距设置回默认值?并重新运行报告。这会导致报告出现与服务器上相同的问题,因此

问题是:如何为服务器设置这些设置?我怎样才能知道水晶报表是在哪个用户下生成的?

I have a text box which is 7.5" wide and I set Can Grow. Inside the textbox I have placed a TEXT database field. I set the field to use the RTF format. When I export the report to PDF on the developer machine I am able to get the word wrapping where it should be (after the finagling with the right margin). However, when I export the report on the server, I get word wrapping about an inch sooner than on the development machine.

So here is some more information: the PDF of the report is generated by an ASP.NET application on both the development machine (from within VS 2008) and the server; I am using the Crystal Reports VS 2008 runtime.

I have tried a few ideas so far:

I found out that Wordpad does not save the page margins into the RTF document. It always uses the last used settings for the page margins which is 1.25" L-R and 1" T-B.

I tried editing the RTF source and adding the appropiate page margins: \margl720\margr720\margt720\margb720 which sets all margins to 720 twips (0.5").

I tried setting the Wordpad defaults for the page margins to 0.5". This is different for each user though. I have the Application Pool for the ASP.NET application running as a specific user. I tried setting it under that user and no change. Is it possible that the Crystal Report is being generated under a different user? Or that Crystal Reports always uses a specific user for this information?

After the settings on the server had no effect, I set the margins on the development machine back to the default and re-ran the report. This causes the report to have the same problem as on the server. So it has to be something with the Wordpad page margins.

So the question is: how do I get these settings set for the server? Or how can I figure out under which user the Crystal Report is being generated?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

回忆那么伤 2024-08-09 11:30:11

事实证明,正如保罗所建议的那样,这与打印机驱动器有关。为了解决此问题,我将报告更改为使用无打印机。这并没有解决 Crystal Reports 对 RTF 的奇怪包装问题。为了解决这个问题,我将字段设置为比页面更宽的文本框。我必须通过反复试验来找出离页面有多远。

It turns out it had to do with the printer drive as Paul suggested. To fix the issue I changed the report to use No Printer. This did not solve the weird wrapping of the RTF by Crystal Reports. To fix that I made the text box that the field was in wider than the page. I had to find how far off the page by trial and error.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文