O$ 10.2 prompt for a PDF file location

Jim Pistrang jim at jpcr.com
Tue Apr 13 15:15:53 UTC 2021


Hi all,

I'm running Studio 10.2 desktop.  I am running a report - I prompt the user for report destination, the user selects PDF, and I alculate $cdevice as kDevOmnisPDF.  When the report runs its $endprint Omnis puts up a prompt for the file name/destination.  The user enters the file name and selects the destination folder, clicks OK, and the PDF ends up in the folder.  I then pop up an OK message telling the user that the PDF has been created.  All is good.

What I can't figure out is how to know if the user pressed Cancel on the file name/destination prompt, in which case I won't want to pop up an OK message.  The Cancel doesn't seem to set a flag.  I thought maybe I could see the destination path in a sys() value and it would be empty on a Cancel, but I don't see it anywhere.

Any ideas on how I can trap for the Cancel?

Jim

-- 
Jim Pistrang
JP Computer Resources
413-237-5710
<https://jpcr.com>




More information about the omnisdev-en mailing list