SSRS 2005 如何打印 4" X 3”标签为纵向。.SSRS 假定为横向

发布于 2024-08-14 21:18:34 字数 241 浏览 9 评论 0 原文

我有一份 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?

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

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

发布评论

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

评论(4

木落 2024-08-21 21:18:34

您可以将页面宽度设置为 3 英寸,高度设置为 4 英寸吗? (不是您的交互尺寸,而是您的页面尺寸)

Can you just set your Page width to be 3" and your height to 4" ? (Not your Interactive Size, your Page Size)

熟人话多 2024-08-21 21:18:34

您如何设计报告? 应该在报表属性中修改纸张方向的属性...

来自MSDN

那么纵向与横向报告的定义是什么?如果PageHeight小于PageWidth,则为横向,否则为纵向。重要的是要了解 Reporting Services 没有打印机中纸张旋转的概念。由使用输出的应用程序(Acrobat 阅读器、打印控件)来确定正确的打印机设置以最好地呈现指定的页面大小。

请注意,DeviceInfo 设置可在报表呈现时用于覆盖定义中的页面大小。这就是当您更改页边距或页面大小时客户端打印控件的工作方式。在 SP2 和 SQL 2005 Reporting Services 中,默认页面大小是在发布时从定义中提取的,并作为报表上的自定义属性写入 ReportServer 数据库。虽然您可以通过 Web 服务上的 SetProperties 方法以编程方式更改这些内容,但如果重新发布报表,它们将被覆盖(与参数和数据源信息不同)。

How are you designing the report? There should be a property to modify for paper orientation in the report's properties...

From MSDN

So what defines a portrait vs. landscape report? If the PageHeight is less than the PageWidth, then it is landscape, otherwise it is portrait. It is important to understand that Reporting Services has no notion of the rotation of the paper in the printer. It is up to the applications that consume the output (Acrobat reader, print control) to determine the correct printer settings to best render the specified page size.

Note that the DeviceInfo settings can be used at report rendering time to override the page sizes in the definition. This is how the client print control works when you change margins or page size. In SP2 and SQL 2005 Reporting Services, the default page sizes are extracted from the definition at publish time and written to the ReportServer database as custom properties on the report. While you can programmatically change these via the SetProperties method on the web service, they will be overwritten if the report is republished (unlike parameter and datasource information).

与风相奔跑 2024-08-21 21:18:34

我有一台类似的打印机,也有类似的问题。将报告方向更改为纵向(数字将向后)。然后,当您运行报告时,单击页面设置。将尺寸从“用户”更改为“自定义”或“模板”(取决于您的打印机)。然后,您应该能够使用打印机属性来更改标签的尺寸。

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.

独享拥抱 2024-08-21 21:18:34

要防止 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.

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