vba MS Access 2003 - 打开报表而不打印

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2064908/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-11 11:12:37  来源:igfitidea点击:

MS Access 2003 - Opening a report without it printing

ms-accessvbareportms-access-2003

提问by Justin

I used

我用了

Docmd.OpenReport "Report1"

from another form and it seems to just want to print the report without actually displaying it. I want to display the report, not print it

从另一种形式,它似乎只是想打印报告而不实际显示它。我想显示报告,而不是打印报告

回答by hawbsl

Set the acView argument to acViewPreview:

将 acView 参数设置为 acViewPreview:

docmd.OpenReport "Report1", acViewPreview

Access Help says you can use one of these AcView constants:

Access 帮助说您可以使用以下 AcView 常量之一:

acViewDesign 
acViewNormal 
acViewPreview  

acViewNormalis the default and prints the report immediately.

acViewNormal是默认值并立即打印报告。