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

Hi

once go through the below link help you.

http://dynamicsuser.net/forums/p/62997/334534.aspx

Regards,

Phani.

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,

Nikunj