Open PDF in AX 4

Hi Martin,

Hope things are good at your end.

I need to open a .pdf file stored in shared drive from a web page in Enterprise Portal in AX 2012 R2.

I have designed a custom class that uses WinApi::ShellExecute to open .pdf file. This works fine on AX thick client.

Unfortunately, WinApi::ShellExecute doesn’t work if i access my X++ class from a web control. The page throws exception.

May be you would like to suggest an approach for this.

Thanks in advance!

Have a nice evening.

Best regards,

Nik