Categories
Dynamics NAV HOW TO Microsoft

HOW TO load xml from a file in C/AL

In the following example, we are going to: open a file, create an InStream object, create an XmlDocument using the DotNet component and load the XML from the InStream.

This example requires that you create the following variables:

NameDataTypeSubtype
TestFileFile
IstreamInStream
XmlDocDotNetSystem.Xml.XmlDocument.’System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′

HOW TO load xml from a file in C/AL?

TestFile.OPEN('C:\TestFolder\TestFile.xml');
TestFile.CREATEINSTREAM(Istream);

XmlDoc := XmlDoc.XmlDocument();
XmlDoc.Load(Istream);

Did my HOW TO help you? Leave a reply.

Categories
Citrix Microsoft Windows 7 Windows Server 2008 Windows Vista Windows XP

Adobe Reader Protected Mode

When you try to open a pdf file with Adobe Reader show the following message:

Adobe Reader Protected Mode
Adobe Reader cannot open in Protected Mode due a problem with your system configuration. Would you like to open Adobe Reader with Protected Mode disabled?

• Open with Protected Mode disabled
• Always open with Protected Mode disabled
• Do not open with Protected Mode disabled

Adobe Reader Protected Mode

Solution 1:
If you choose one of the first two options, the file opens, with the third no.

Solution 2:
To change your system configuration, launch Adobe Reader

click Edit menu then select Preferences…
or
use shortcut Ctrl+K

Inside General category uncheck “Enable Protected Mode at startup” on the bottom of the page.
Then click Yes in the confirm alert window

Adobe Reader
You have to chosen to turn off Reader’s protected mode. In order for these changes to take effect, you would have to manually restart the application.

Are you sure you want to continue?

Adobe Reader Protected Mode Turn Off Alert

and then click OK on bottom of the page to close Preferences window.
Close Adobe Reader.

Note:
If you use the Microsoft Application Virtualization (App-V) Softgrid Client or Citrix Receiver, the Acrobat Reader is an application different from your local installation. You have to change the configuration here rather that in your local installation. I suggest you to open the file using the first option then change system configuration from this window.

Did my solution solve your problem? Leave a reply.