cancel
Showing results for 
Search instead for 
Did you mean: 

how to add activex

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

FOA
Advisor
Advisor
0 Kudos

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

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

Regards,

Felipe

Answers (0)