Variables: OutStreamXSL: OutStream xmldomXSL: Automation: 'Microsoft XML, v6.0'.DOMDocument Code: SomeRec.GET; SomeRec.CALCFIELDS("Some BLOB Field"); IF NOT SomeRec."Some BLOB Field".HASVALUE THEN ERROR('Some error'); SomeRec."Some BLOB Field".CREATEOUTSTREAM(OutStreamXSL); CREATE(xmldomXSL); xmldomXSL.load(OutStreamXSL); MESSAGE(xmldomXSL.documentElement.nodeName);This works fine in the Classic client, but the MESSAGE gives me an "The automation variable has not been instantiated." in the RTC. The code needs to work in both the Classic Client and the RTC so using .NET Interop is not an option. Can anybody tell me what I'm doing wrong?
Answers
So you need to call it this way: CREATE(xmldomXSL,true,false)
It seems it is my mistake - I'm using OutStreams where I should use InStreams :oops:
Apparently the classic client doesn't mind... :?
Peter
Thanks in advance
"God and developers are in a constant battle. Developments to make their applications more idiot-proof, and God to produce bigger idiots!"
Peter
I'm still getting issue but hoping it will be resolved when running it as a web service rather than from a report which I was doing to test it.
"God and developers are in a constant battle. Developments to make their applications more idiot-proof, and God to produce bigger idiots!"