I use START_PPROCESS@ to display the PDF I create for the user. This way, the program can continue while the PDF is being loaded and displayed.
PPNAME = TRIM(OPENED_FILENAME(I))//'.PDF'
return_val = start_pprocess@('explore',TRIM(PPNAME))
I call EXPLORE to insure that if the PATH has been mucked with, it will still open the file using the assigned application. It was a bit of a surprise that I needed to do it this way, but then, isn't all of Windows an adventure?
This works for any file for which there is a registered application and OPEN defined. In addition, you can replace 'explore' with a specific application if you chose (or need to because of conflicts in the default application).
Bill