Crystal Reports to pdf 未生成,如 Crystal Reports 预览中所示

发布于 2024-10-02 05:11:53 字数 557 浏览 0 评论 0原文

我正在生成一个水晶报告并使用 C# prog 将文件分解或“分解”为单独的 pdf 文件(使用此 prog.... 水晶报告“文件中断”) 当将PageHeader部分移动到“Report Head”部分时,C# prog生成后水晶报表的详细信息部分不会显示。 当我从水晶报告中的“预览”预览水晶报告时,详细信息部分就在那里...... 有什么想法吗? 提前致谢!! 我会发布图片,但该网站不会让我超过 10 个代表点。 这是水晶报表预览

alt text

这是我生成 pdf 之后的结果......看看详细信息部分如何没有被填充,即使在 CR 的预览中也显示了活动......当我将顶部图像切换到组头而不是页面头时,这一切都发生了......

I am generating a crystal report and using a C# prog to break or "burst" the file in to individual pdf's (using this prog.... Crystal Reports "File Break" )
When move the PageHeader section to the "Report Head" section, the details part of crystal reports does not show after the C# prog generates.
When I preview the crystal report from "preview" in crystal reports the detail section is there.....
Any Ideas?
Thanks in advance!!
I would post images but the site will not let me with out more than 10 rep points..
This is the crystal report preview

alt text

And this is after i generated the pdf.... See how the details section is not being populated, even tho in the preview in CR the activities are showing.... This all happened when i switched the top image to be in the group head instead of the page head....

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

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

发布评论

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

评论(1

救星 2024-10-09 05:11:53

假设没有以编程方式进行隐藏/抑制部分、记录选择等操作...通常,如果预览看起来与输出到 PDF 或打印的内容不同,则它始终与打印机驱动程序、选择的字体和报告打印机设置有关。

对于初学者,我将确保您使用通用的“HP 兼容”打印机作为报告的驱动程序(在 Crystal 中开发时选择默认打印机)。另外,仅出于测试目的,将报告字体更改为非常简单且“老派”的字体,例如 Courier 或 Arial。如果在此之后您得到正确的结果,请进入并调整/重新应用您的旧字体。

另外,请确保表单上的各个字段对象设置为“可以增长”。此外,始终将对象的尺寸设置得比它看起来需要的大。例如,如果某个字段看起来需要 10 个字符宽,请将其调整为 12 个字符宽。这将有助于解决打印机和输出不兼容的问题。

Assuming there is nothing going on programmatically with hiding/suppressing sections, record selection, etc... generally, if a preview looks different than what is output to PDF or printed, it's always related to printer drivers, fonts chosen, and report printer setup.

For starters, I would make sure you're using a common "HP-compatible" printer as the driver (selected default printer while developing in Crystal) for the report. Also, just for testing purposes, change your report fonts to something VERY simple and "old school" like Courier or Arial. If you get the correct results after this, then go in and tweak/reapply your old fonts.

Also, make sure your individual field objects on the form are set to Can Grow. Additionally, always size your objects bigger than what it looks like it needs. For example, if a field looks like it needs to be 10 characters wide, size it 12 characters wide. This will help with printer and output incompatibilities.

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