RTC (NAV 2009 R2) - XMLPort Export to client machine instead of server

I have a codeunit that runs an XMLPort (EXPORT). It uses the same code that I'm sure we've all copy/pasted many times (see below).

The problem is that if I open the RTC on my local PC, and run the codeunit, the file is saved on the Navision server.

The weird thing is, if I open the Classic and run the EXACT SAME codeunit, it saves it local to my PC.

Is there a way of making the RTC save the output on my local PC instead of the server?
varXmlFile.CREATE(FilePath+'\xmlout.xml')
varXmlFile.CREATEOUTSTREAM(varOutputStream);
XMLPORT.EXPORT(XMLPORT::"The XMLPort I Am Running", varOutputStream);
varXmlFile.CLOSE;

Best Answer

Answers

Sign In or Register to comment.