April 18, 2017 at 9:43 am
#10121
I’ve used it this way and it works; the browser (Firefox) opens the PDF in a new tab (after you allow to open pop-ups):
Calculate lcdevice as $cdevice.$ident ;; store current print destination
Do $cdevice.$assign(kDevOmnisPDF)
Do Omnis PDF Device.$settemp(kTrue,1) Returns lID
Set report name YOUR_REPORT_CLASS
Print report {YOUR_REPORT_CLASS (your parameters...)}
Do $cdevice.$assign(lcdevice) ;; restore print destination
Do $cinst.$clientcommand("showpdf",row(lID))