Dear All,
I using the following method to create a txt file on my pc, they are:
Varible
==============================================
Name DataType Subtype
XMLTest XMLport Export Return Tab File
varXmlFile File
varOutputStream OutStream
Coding
varXmlFile.CREATE('D:\Test\Output.txt');
varXmlFile.CREATEOUTSTREAM(varOutputStream);
XMLPORT.EXPORT(XMLPORT::"Export Return Tab File", varOutputStream);
varXmlFile.CLOSE;
However, when i run the coding, it prompt such as error, please refer to image attach.
Thanks for your help.
0
Comments
Then how i create that file at my PC? How i modify the coding?
You can use .net to write directly to your host.
Look at http://www.dynamics.is/?p=1405 for examples.
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com