Has any body been able to get steams and xml to work from navision solutions beta 3.0. Iseam to be able to create and write to the streams but always fail to save the xml file.
I think I am missing something and will have to play with VB to work out how to use XMLDomDoc over the weekend. But if any one has got it to work can they tell us how.
And now that XML is going to take over the world??? how do we use Biztalk and navision together.
pAUL bAXTER
0
Comments
The code is as follows:-
// Firstly, we define the record number we want to use.
recEmployee."No." := '5555';
// We now load the XML DOM, which will pass the OutStream to the external object.
XMLDom.load('SomeData.xml');
recEmployee.Picture.CREATEOUTSTREAM(StreamOutObj);
StreamOutObj.WRITE('Ver. 1.00');
// Write version.
StreamOutObj.WRITE('Company Ltd.');
// Write (c).
StreamOutObj.WRITE(TODAY);
// Write a DATE (today).
// The following information will be written as plain text.
StreamOutObj.WRITETEXT('Dear Customer,');
StreamOutObj.WRITETEXT();
// This inserts a carriage return and a new line.
StreamOutObj.WRITETEXT('We would like to thank you for your help.');
StreamOutObj.WRITETEXT();
StreamOutObj.WRITETEXT('We hope to see you soon!');
StreamOutObj.WRITETEXT();
XMLDom.save(StreamOutObj);
recEmployee.MODIFY();