Skip to Content
0
Former Member
Jan 12, 2006 at 01:10 AM

Error on LoadBatchActions for XML file

244 Views

I am trying to load a screen painter form which I have saved as an xml file. My code worked last week. I haven't changed anything. I don't know why it gives me an error now, maybe someone can help me?

Here is my code:

private void LoadFromXML(string FileName )

{

try

{

XmlDocument oXmlDoc = new System.Xml.XmlDocument(); string sPath;

sPath = "D:
SAP
Direct
DirectControls";

string sFile = sPath + "
" + FileName;

oXmlDoc.Load( sFile );

string sXML = oXmlDoc.InnerXml;

SBO_Application.LoadBatchActions( ref sXML );

}

catch ( Exception ex )

{

string s = ex.Message;

}

}

It blows up on SBO_Application.LoadBatchActions( ref sXML ); and gives me an error of Object Does Not Exist. I know it finds the xml file as I can see that it does. Anyone have any suggestions?

Thanks!

Laura