I'm using 2009 R2 RTC, and I'm trying to run an xmlport via code. I have some code that runs just fine, so long as I'm running it from the same machine the service tier resides on. When I run it from a different machine, it does not work.
The code I am trying is:
TF.WRITEMODE(FALSE);
TF.TEXTMODE(TRUE);
TF.OPEN(tmpSourceFile);
TF.CREATEINSTREAM(IS);
ImportXMLP.SETSOURCE(IS);
ImportXMLP.IMPORT;
TF is a File
IS is an instream
It is failing at the line TF.OPEN(tmpSourceFile);
Can anyone offer assistance here?
Comments
The function you need is SilentUpload()
RTC Printouts Made Easy
NaviNordic Document Configurator for Dynamics NAV
I will do some testing...
I guess using 'SilentUpload' would be considered 'best practice'.
RTC Printouts Made Easy
NaviNordic Document Configurator for Dynamics NAV
2009-R2 (NAVW16.00.01)
2009-SP1 (NAVW16.00.01)
2009 (NAVW16.00)
And none of them have it.
I'm going to try File.UPLOADINTOSTREAM. It prompts the user, but I might just restructure the code around it to compensate.
and Magitpath: