Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A problem with the Report Form command (VFP 5)
Message
From
29/11/1997 22:18:50
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00062659
Message ID:
00062887
Views:
38
>I have a form on which I have placed a button which is supposed to display a preview of a report. I have another button which prints the report.
>
>The "Print" button works just fine, building the tables the report uses, bringing up the printer selector dialog box, and printing the report.
>
>The "Preview" button, however, has a problem. The preview never is displayed.
>
>This worked for a little while, but has recently stopped working, for reasons unknown to me. Both buttons use the same call to the print program, only the preview button passes a "1" and the print button passes a "2" to be used as the PrintFlag. I've displayed the code below. Any suggestions on why this no longer works would be appreciated.
>
>
>IF PrintFlag = 1
> REPORT FORM orderport NOCONSOLE PREVIEW
>ELSE
> REPORT FORM orderport NOCONSOLE TO PRINTER PROMPT
>ENDIF

Dale,
Right above you case statement, put a WAIT WINDOW STR(PrintFlag) to see what the value of your flag is.. Maybe your Paramenters statement for the method/procedure is not correct?? Or is PrintFlag a global variable that you use??

Thanx!

Tony Miller
Vancouver, Wa
Previous
Reply
Map
View

Click here to load this message in the networking platform