web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance forum

ActiveX control

(0) ShareShare
ReportReport
Posted on by 931

Hi, 

In Ax2009, i have a form with activeX control that display XML.

Since ActiveX control is deprecated in D365, how can i achieve it.

In ax 2009, in the form init method , activeX.navigate('Xml file path').

How can i rewrite this in D365?

Please advice.

I have the same question (0)
  • ThivaKar Profile Picture
    931 on at

    Hi, any idea?

  • Suggested answer
    Mea_ Profile Picture
    60,286 on at

    First of all you can open xml file in new tab and browser will take care of it. Another option is to use preview control from document management form. You can read about these options here [View:https://community.dynamics.com/enterprise/b/sertansdynamicsax/archive/2017/02/27/how-to-work-with-files-in-ax-7-part-2-browse-and-download-files-stored-in-db-attach-files-to-the-new-document-management]

  • ThivaKar Profile Picture
    931 on at

    Hi Ievgen,

    Thanks, this gave me an good idea on DocuView.

    If i put a DocuViewerContainer control in my customized form, how can i pass the XML which is stored in a table, is there any ,method?

    What i mean is, in the DocuView form, it displays the XML in preview tab, that is exactly what i need in my form, a preview tab, which will have the XML.

    Please advice.

  • Mea_ Profile Picture
    60,286 on at

    What stops you from opening this form in AOT to check how it works ? You can use it as an example, because I believe you will have more questions than that one.

  • ThivaKar Profile Picture
    931 on at

    Hi Ievgen,

    I have another question, i use the following classes to create XML from string.

    System.Xml.XmlReaderSettings xmlReaderSettings;

       System.IO.StringReader stringReader;

       System.Xml.XmlReader xmlReader;

    stringReader = new System.IO.StringReader(MyTable.XML);

               xmlReaderSettings = new System.Xml.XmlReaderSettings();

               document = new System.Xml.XmlDocument();

               xmlReaderSettings.XmlResolver = resolver;

               xmlReader = System.Xml.XmlReader::Create(stringReader, xmlReaderSettings);

               document.Load(xmlReader);

    If i want to pass or read the created XML to a form control, which one can i use?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans