Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you tell if your report is in "preview" mode?

Status
Not open for further replies.

rafe

Technical User
Aug 18, 2000
194
US
I want to avoid some processing if a report is opened in preview mode.

Is there an equivalent to:

IF Me.Report.Mode = acViewPreview THEN...?

Documentation has been no help.

thanks

rafe
 
There are (only?) three modes for the reports:

Design Mode. It doesn't "look Like" the report, bu shows the sections and controls which may appear on the finished report.

Preview Mode. It is the report filled in with the data - shown on the monitor. You can essientially only switch to the design mode or print the report (or selected portions thereof) or close it.

"Normal Mode". It never appears "in view" on the monitor, but is sent in it's entirety to the selected printer.

So your question is really answered in the code which instantiates the report, and thus is "known" prior to or at the point of instantiation.

Did I miss the point of the question?



MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over
 
sometimes i bypass code to look @ the reports by pressing the preview button myself (i'm the user)... so, in that case there's no code instantiating the report (that i can get to?).

**if** it's possible to tell what mode report is in then it's a simple IF...THEN to bypass/change the report side effects.

rafe
 
I don't know of any way to do this. Acording to the docs. and a few attempts, all of the events and properties are the same wheather the report is in preview or "print" mode.
Hopefully, someone else knows how to solve this one.



MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over
 
I appreciate the attempt.

Thank you Michael.

Raphael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top