Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

Former Member
Former Member replied

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

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

Regards,

Felipe

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question