Displaying a PDF from a Control

Would like to display a PDF from a button in a Control. I am using sc_redir to open to a new window which is working fine, but the calling control application is showing OK. Clicking OK returns to the same application. Can I avoid having to click the OK button?

One approach might be to pass the pdf to a blank application. In this blank application you can set the HTML headers to let the browser respond in the desired way and let the pdf be downloaded or previewed. This will prevent the ok button to appear.

Hi,
I think that you can use javascript instead in order do not have the OK button. Someone suggest me but I don’t remember how becouse it’s long time ago.
Bye

there is a javascript called pdf.js you may be able to do it with that.