如何从 C# 打印格式化标签

发布于 2024-12-01 05:21:29 字数 341 浏览 4 评论 0原文

我正在编写一个程序,它将(除其他外)打印出带有可变信息的标签。我希望能够在设计时格式化这些标签(最好在 GUI 中),然后在运行时打印它们。我可以使用哪些工具/语言/项目来完成此任务?

标签需要包含文本以及 Code39 或 Code128 条形码。

打印将在普通的默认打印机上完成,或者可能在标签打印机上完成,目前未知。

优先考虑开源、免费项目,但欢迎提出任何建议。我还希望能够通过 xcopy 分发该程序,这意味着客户端上不需要单独安装。

编辑:我现在尝试在本地模式下使用 Microsoft Reporting 服务来执行此操作,但在使条形码可读时仍然遇到问题。

I'm writing a program that will (among other things) print out labels with variable information. I want to be able to format these labels (preferably in a GUI) at design-time, then have them print out at runtime. What tools/languages/projects can I use to accomplish this?

The label needs to include text and also Code39 or Code128 barcodes.

Printing will be done on a normal default printer, or possibly a label printer, unknown at this time.

Preference is for open-source, free projects, but any suggestions are appreciated. I'd also like to be able to distribute the program through xcopy, meaning no separate installations needed on the client.

EDIT: I'm now trying to do this using Microsoft Reporting services in local mode, but I'm still having problems getting the barcode to be readable.

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

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

发布评论

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

评论(2

随遇而安 2024-12-08 05:21:29

这里有一个使用我们的可编程 ActiveReports 产品执行此操作的简单演练。设计标签后,您可以获取 PDF 格式或直接打印它们(等等)。使用 ActiveReports 创建标签制作程序的另一个示例是此处。该版本使用 ActiveReports 的 ActiveX/COM 版本,但 C#/.NET 版本中的概念仍然相同。

我们还提供了一个名为Data Dynamics Reports的产品,它使用基于页面的隐喻来设计报告,而不是带状的报告。像 ActiveReports 这样的隐喻。它包括一个标签向导,您可以在此链接。

Scott Willeke
GrapeCity inc.

There is a simple walkthrough of using our programmable ActiveReports product to do this here. Once you design the labels you can get them in PDF or print them directly (among other things). Another example of using ActiveReports to create a label maker program is here. That one uses the ActiveX/COM edition of ActiveReports but the concepts are still the same in the C#/.NET version.

We also provide a product named Data Dynamics Reports that uses a page-based metaphore for designing reports rather than the banded metephore like ActiveReports. It includes a label wizard which you can find out more about at this link.

Scott Willeke
GrapeCity inc.
水波映月 2024-12-08 05:21:29

使用 Microsoft Reporting Services 我可以使用本地报告。它不是 xcopy,但它是免费的并且相对容易。我只需在客户端上安装报告查看器(和条形码字体),然后我什至可以从网络共享运行 .exe。

Using Microsoft Reporting Services I can use a local report. Its not xcopy, but it is free and relatively easy. I just have to install report viewer on the client (and the barcode font), then I can even run the .exe from a network share.

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