How to open .pdf file from web page using a button click in AX 2012 R2

I have created a web page in AX 2012 R2 and added a button. On click of the button i’m trying to open a pdf file saved on a shared drive.

Any suggestions/ help will be highly appreciated.

Thanks much!

BR, Nik


once go through the below link help you.



Thanks Phani for your kind suggestion.

Unfortunately, I’m unable to access WinApi::ShellExecute from a web control in EP.

I’ve already designed a custom class and accessing it from EP, but the page throws exception.

Seems like ShellExecute doesnt work with EP.

Best reagrds,