如何保存报表.文档.打印机设置?

发布于 2024-08-21 10:15:09 字数 88 浏览 3 评论 0原文

我想将 Report.Document.Printer 设置存储在数据库中, 我怎样才能保存它? 有没有类似 Report.SaveLayout() 方法的方法?

I want store the Report.Document.Printer settings in a database,
how can I Save it?
Is there any way like the Report.SaveLayout() method?

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

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

发布评论

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

评论(2

青衫儰鉨ミ守葔 2024-08-28 10:15:09

没有像 SaveLayout 这样的内置保存方法,但您可以自己将这些设置保存到文本或 XML(例如)中,以保存在数据库中并稍后手动重置它们。

您可以在 打印机类文档页面。根据您的需要,您只需从数据库(文本/xml)中检索这些设置,而不是像示例中那样对它们进行硬编码。

There is no built in save method like SaveLayout, but you could save these settings yourself into text or XML (for example) to save in your database and manually reset them later.

You can see an example of setting those properties in the Printer class documentation page. For your needs, you would just retrieve those settings from your database (the text/xml) instead of hard coding them as is done in the example.

原来是傀儡 2024-08-28 10:15:09

尝试 PrintDocument.PrinterSettings

try PrintDocument.PrinterSettings

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