我有一份 SSRS 2005 报告表单,正在打印到 Zebra ZDesigner TLP 2844-Z 标签打印机。交互和页面尺寸设置为 4 英寸宽 x 3 英寸高。由于 SSRS 中没有纸张方向,因此当它应该是纵向报告时,它会假设这是横向报告,从而横向打印标签。
用户可以在调整打印设置后导出为 PDF 并进行打印,但生成/打印 pdf 的额外点击次数是不可接受的。
有没有办法强制打印作业打印肖像或其他解决方法/技巧来做到这一点?
I have a SSRS 2005 report form that is printing to a Zebra ZDesigner TLP 2844-Z label printer. The Interactive and Page sizes are set to 4" wide by 3" high. Since there is no paper orientation in SSRS, it is assuming this to be a landscape report when it should be a portrait thereby printing the labels sideways.
The users are able to export to a PDF and print after adjusting the print settings, but the extra clicks to produce/print the pdf's are unacceptable.
Is there a way to force the print job to print portrait or another workaround/trick to do this?
发布评论
评论(4)
您可以将页面宽度设置为 3 英寸,高度设置为 4 英寸吗? (不是您的交互尺寸,而是您的页面尺寸)
Can you just set your Page width to be 3" and your height to 4" ? (Not your Interactive Size, your Page Size)
您如何设计报告? 应该在报表属性中修改纸张方向的属性...
来自MSDN
How are you designing the report? There should be a property to modify for paper orientation in the report's properties...
From MSDN
我有一台类似的打印机,也有类似的问题。将报告方向更改为纵向(数字将向后)。然后,当您运行报告时,单击页面设置。将尺寸从“用户”更改为“自定义”或“模板”(取决于您的打印机)。然后,您应该能够使用打印机属性来更改标签的尺寸。
I have a similar printer with a similar problem. Change the report orientation to portrait (the numbers will be backward). Then when you run the report click page setup. Change the size from "USER" to either "custom" or "template" (depending upon your printer). You should then be able to use your printer properties to change the size of the labels.
要防止 SSRS WinForms ReportViewer 旋转打印的标签,请使用方形页面。如果长和宽相同,ReportViewer将不会旋转。我发现,当我将 2.5" x 1" 标签的页面尺寸扩大到 2.5" x 2.5" 时,打印在纸张上的方向正确,并且没有浪费。也许 Zebra 的驱动程序会剪掉空白区域。
我还尝试使用文本框的writingMode = Rotate270 设计旋转标签。那没有帮助。
To prevent the SSRS WinForms ReportViewer from rotating your printed labels, use a square page. If the length and width are the same, ReportViewer will not rotate. I found that when I expanded the page size for my 2.5" x 1" label to 2.5" x 2.5", the print was oriented correctly on the stock and there was no waste. Perhaps Zebra's driver clips the blank area.
I also tried designing a rotated label using Text Box's WritingMode = Rotate270. That didn't help.