I try to open and then reopen a Screen painter Form without success. I see it is a common issue but I cannot find a solution. This is what I try.
Dim oXmlDoc As New MSXML2.DOMDocument ' need the reference in Solution Explorer "MSXML2"
Dim creationPackage As SAPbouiCOM.FormCreationParams
' Form load and creation
If oXmlDoc.xml = "" Then
creationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
creationPackage.UniqueID = "FBLK"
creationPackage.FormType = "2000000001"
creationPackage.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Sizable
creationPackage.XmlData = oXmlDoc.xml
oForm = SBO_Application.Forms.AddEx(creationPackage)
Catch ex As Exception
oForm = SBO_Application.Forms.Item("FBLK")
I get an exception 'Invalid Form' but the form OPENS (without functionality and if closed cannot reopen) any Idea?
Edited by: Vangelis Kanellopoulos on Dec 16, 2009 7:14 PM