Skip to Content
0
Former Member
Apr 26, 2011 at 06:44 AM

File ..path.Detest.xml not found

26 Views

Hi Experts,

When i am trying to run my add on it is giving error like some path then Detest.xml. While i am not referencing any file Detest.xml..

My xml file name is test.xml...

here is thje code.

private void Testing()

{

SAPbouiCOM.Form oForm = null;

try

{

oForm = SBO_Application.Forms.Item("test");

SBO_Application.MessageBox("Form Already Open", 1, "Ok", "", "");

}

catch (Exception ex)

{

SAPbouiCOM.FormCreationParams fcp = null;

fcp = ((SAPbouiCOM.FormCreationParams)(SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)));

fcp.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Fixed;

fcp.FormType = "ft_Sizable";

fcp.UniqueID = "test1";

string transTemp0 = "test.xml";

fcp.XmlData = LoadFromXML(ref transTemp0);

oForm = SBO_Application.Forms.AddEx(fcp);

MessageBox.Show("Error in testing" + ex.Message);

}

oForm.Top = 150;

oForm.Left = 330;

oForm.Visible = true;

}.