General information
Category:
Reports & Report designer
Create a Public variable to store the name of the report "Myreport", initialize this variable with Myreport=" "
Place a Print... Item in your Menu - Perhaps under File.
Create a Proceedure for the Print Menu Item.
*the following will bring up the Windows Print Prompt.
IF myreport>" "
REPORT FORM &myreport TO PRINTER PROMPT NOCONSOLE
ENDI
*The following is required to restore your preview, strange things will happen if you don't.
IF myreport>" "
REPORT FORM &myreport PREVIEW NOWAIT
ENDI
When calling the report from the menu or a form do the following:
When you select the report store the name of the report to the variable myreport.
On selecting the report a screen is activated which allows me to do several things but also has an OK button and Close button.
On OK Click I have the following:
REPORT FORM &myreport PREVIEW NOWAIT
On Close Click do the following
RELEASE THISFORM
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only