MS Access-导出页面设置 [英] MS Access - Export Page Settings

查看:74
本文介绍了MS Access-导出页面设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个用于打印标签的应用程序. 我们将在具有不同打印机的许多工作站上使用它. MS Access会记住每个报告/打印机的页面设置设置. 有没有办法导出页面设置设置?

I develop an application for printing Labels. We will use it on many workstations with different printers. MS Access remembers the Page Setup Settings for each Report / Printer. Is there a way to export the Page Setup Settings?

如果我编写更新,则必须再次为每台打印机设置每份报告.

If i write an Update, i have to setup every Report for every Printer again.

推荐答案

您可以导出打印机设置.但是您可能应该调整数据库以在表中存储每台计算机或每台报告的每台计算机的打印机首选项,因此每台计算机可以具有不同的打印首选项.

You can export printer settings. But you should probably adjust your database to store printer preferences per machine or per machine per report in a table, so each machine can have different printing preferences.

您可以通过存储Report.Printer对象的不同属性来导出报告打印机.

You can export report printer by storing different properties of the Report.Printer object.

主要的是:

Reports!SomeReport.Printer.DeviceName
Reports!SomeReport.Printer.PaperSize
Reports!SomeReport.Printer.PaperBin

要为报告设置打印机,可以使用:

To set a printer for a report, you can use:

Set Reports!SomeReport.Printer = Application.Printers("PrinterDeviceName")

您只需设置属性即可设置PaperSize和PaperBin.

You can set PaperSize And PaperBin by just setting the properties.

您可以找到有关使用打印机的一些高级文档在此Microsoft Docs文档中.请注意,对我来说,这需要进行一些调整才能处理不带托盘的打印机(某些虚拟PDF打印机).

You can find some advanced documentation on working with printers in this Microsoft Docs document. Note that, for me, this needed some adjustment to be able to handle printers with no trays (some virtual PDF printers).

这篇关于MS Access-导出页面设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆