打印从水晶报告生成的PDF时设置默认打印纸张尺寸?

时间:2022-05-19 21:08:22

I am using crystal reports (the version that comes with visual studio 2008) to generate a pdf in an asp.net which then gets pulled into a client's browser.

我正在使用水晶报告(visual studio 2008附带的版本)在asp.net中生成pdf,然后将其拉入客户端的浏览器。

Some of these reports are on legal size paper. This means that for these reports our clients have to manually change the paper size in the print dialog every time they print. Of course frequently they don't do this until they've already printed a 10 page report on the wrong paper thereby wasting time and paper.

其中一些报告是在法律规模的文件上。这意味着对于这些报告,我们的客户必须在每次打印时手动更改打印对话框中的纸张尺寸。当然,他们经常不会这样做,直到他们已经在错误的纸张上打印了10页报告,从而浪费时间和纸张。

Is there a way for me to embed information on the default paper size for printing inside the pdf? I don't see an option for it on the crystal reports API, but I'm also not particularly familiar with it.

有没有办法在pdf中打印默认纸张尺寸的信息?我没有在crystal Reports API上看到它的选项,但我也不是特别熟悉它。

1 个解决方案

#1


The default paper size is actually set in Crystal using File -> Page Setup; this will determine the output size of the PDF. The thing you need to change is, unfortunately, on the client machines...in the print dialog of Adobe Acrobat, the "choose paper source by PDF page size" check box needs to be checked. I believe this checkbox "sticks" across all printers and all documents once chosen.

默认纸张大小实际上是使用文件 - >页面设置在Crystal中设置的;这将决定PDF的输出大小。不幸的是,您需要更改的内容是在客户端计算机上...在Adobe Acrobat的打印对话框中,需要选中“按PDF页面大小选择纸张来源”复选框。我相信这个复选框会“粘住”所有打印机和所有文档一旦被选中。

#1


The default paper size is actually set in Crystal using File -> Page Setup; this will determine the output size of the PDF. The thing you need to change is, unfortunately, on the client machines...in the print dialog of Adobe Acrobat, the "choose paper source by PDF page size" check box needs to be checked. I believe this checkbox "sticks" across all printers and all documents once chosen.

默认纸张大小实际上是使用文件 - >页面设置在Crystal中设置的;这将决定PDF的输出大小。不幸的是,您需要更改的内容是在客户端计算机上...在Adobe Acrobat的打印对话框中,需要选中“按PDF页面大小选择纸张来源”复选框。我相信这个复选框会“粘住”所有打印机和所有文档一旦被选中。