Skip to Content
avatar image
Former Member

how to add activex

Dear friends,

it possible to add crystal report viewer to sbo form if yes then pl give me code for that .following is my code

Dim oFormTST As SAPbouiCOM.Form

Dim oCreatP As SAPbouiCOM.FormCreationParams

Dim oItemX As SAPbouiCOM.Item

Dim oActivX As SAPbouiCOM.ActiveX

oCreatP = SBO_ApplicationPur.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)

oCreatP.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Sizable

oCreatP.FormType = "ViewerType"

oCreatP.UniqueID = "VIEWER"

Try

oFormTST = SBO_ApplicationPur.Forms.AddEx(oCreatP)

Catch ex As Exception

MsgBox(ex.Message)

End Try

oFormTST.Height = 400

oFormTST.Width = 400

oFormTST.Title = "Print View"

oItemX = oFormTST.Items.Add("Activex1", SAPbouiCOM.BoFormItemTypes.it_ACTIVE_X)

oActivX = oItemX.Specific

oActivX.ClassID = "CrystalReports11.CrystalReportViewer.10.2"

oFormTST.Visible = True

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Aug 23, 2007 at 01:05 PM

    Check this Thread, perhaps it will help you with the code.

    https://forums.sdn.sap.com/click.jspa?searchID=4728272&messageID=3680575

    Regards,

    Felipe

    Add comment
    10|10000 characters needed characters exceeded