Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capturing Print Dialogue Box Result
Message
 
 
To
14/04/2002 21:35:12
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00644779
Message ID:
00644897
Views:
26
>Sergey:
>
>I got it! But it doesn't work for me exactly as advertised.
>
>I could not get the code below to work with reference to "Print" but I got it to work with WIND1.
>
>_VFP.SETVAR("LLPRINTED", WEXIST("WIND1")) && this works
>
>I got WIND1 to work by defining a window as WIND1 then had the PRINT command work through WINDOW WIND1 as below.
>
>DEFINE WINDOW WIND1 FROM 1,3 TO 30,130
>REPORT FORM FINES1 TO PRINT PROMPT NOCONSOLE WINDOW WIND1
>
>With these modifications the value of llPrinted is only .t. if the Print process completes.
>
>So I am out of the woods. Thanks for your help.
>
>Mike Smith

You'll always get .T. because window WIND1 is defined before running report. The name of the window dispalyed during report printing is "Printing..." not "Print".
_VFP.SetVar("llPrinted", WEXISTS("Printing..."))
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform