How can I open a document from Axapta?

pedroparrapedroparra Member Posts: 58
edited 2006-02-09 in Dynamics AX
Hi I am developing a Web based Content Management System and I want to integrate it with Axapta.

When I insert a new document I have in a Axapta table the path of the new file inserted on our server. So How can I open a Word, PDF, ... document from Axapta using X++?

There is some way to launch a windows command from Axapta in order to open the document with one of the applications installed in the client computer?

Thanks guys

Comments

  • ManekazeManekaze Member Posts: 6
    Hola Pedro :wink:

    You can take a look at winapi::ShellExecute

    May it could help you.


    Good luck,

    Mkz
    http://www.TrucosAx.com
    A Dynamics Ax (Axapta) tricks site in Spanish language :)
  • pedroparrapedroparra Member Posts: 58
    static void Test2(Args _args)
    {
    ;
    WinAPI::shellExecute('C:\TMP\\resumen.pdf');
    }

    Opened my PDF document.
Sign In or Register to comment.