Open doc , excel and Pdf in DAX 2009 Form


I will be illustrating how we can load files like doc , excel and pdf on forms in Axapta 2009.
      1.  You will have control on document like set rights for read only etc.
      2.  User will be in AX Workspace , no need for switching the windows between AX and Doc

Steps  1.  Create form , add ActiveX Control of type Microsoft Web Browser in Design
            2.  Name the Control as CtrlActiveX
            3.  On Form Init Method , after super ()
                        CtrlActiveX.navigate("filePath");         // you can load URL for browsing

As show below in Image
When you run the form , you will see pdf inside form

Enjoyy File Viewing in DAX 2009.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.