MS Access 2010 - docmd.printout 未打印指定数量的副本
我几乎可以得出结论,这是 MS Access 中的一个错误。我已经迫不及待地想知道下一步该尝试什么。
以下是我的步骤:
- 创建新的空白 2010 格式 Access 数据库
- 在数据库中创建新报告,没有数据源,只有一个标签,以便可以打印。
- 打印预览报告。
- 按 Ctrl+G 打开即时窗口
- 输入
docmd.PrintOut,,,,10
并按 Enter。 - 只打印一份!
我在现有的相当大的数据库应用程序中做了同样的事情,无论我做什么,我都无法让 Access 打印出一份以上的副本!但有一个例外:有一份报告可以正常工作,我可以打印任意数量的副本。除了这份报告之外,我还没有找到另一份有效的报告。
更奇怪的是,当我预览报告时,单击功能区上的“打印”并输入要打印的数量,我仍然只得到一份!
有没有人对尝试什么或可能出现什么问题有其他想法?
I'm almost to conclude it is a bug in MS Access. I am at the end of my string to know what to try next.
Here are my steps:
- Create new, blank 2010 format Access Database
- Create new report in database with no data source and only one label just so that there is something to print.
- Print Preview the report.
- Press Ctrl+G to bring up the immediate window
- Type
docmd.PrintOut,,,,10
and press enter. - Only one copy prints out!
I have done the same thing in my existing rather large database application and no matter what I do I can't get Access to print out more than one copy! There is one exception to this; there is ONE report that will work as normal and I can print out as many copies as I want. I have yet to find another report that works besides this one.
To make it even stranger, when I preview the report, click print on the ribbon and enter a quantity to print, I still only get one copy!
Does anyone have any other ideas of what to try or what the issue might be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我得到的结果与您报告的结果相同。作为解决方法,您可以将报表绑定到“数字”表,即包含从 1 到所需最大值的整数的表,并设置起始页和终止页,而不是副本数。
I am getting the same results that you report. As a work around, you could bind the report to a "numbers" table, that is, a table with integers from 1 to maximum required, and set the from and to pages, rather than number of copies.