Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell if cancel was clicked in the print dialog.
Message
From
20/05/2005 17:32:38
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01016243
Message ID:
01016381
Views:
8
>>>I know how to tell if printed from print preview....
>>>
>>>How can I tell if Cancel was clicked on the print dialog?
>>
>>Pretty much the same way. You can have a function called from your topmost band which will set a property or a variable somewhere to .t. if the report was run. If it wasn't, it won't ever run.
>>
>>If your report has a dataenvironment (not recommended by a few here, me included), you can add such code there.
>
>You don't need UDF. See Re: Capturing Print Dialogue Box Result Message #878078

Even better - _vfp.SetVar() is exactly what we need. A procedure we don't even have to write, it's already there. Cool.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform