Skip to Content
0
Former Member
Jul 07, 2006 at 11:07 AM

ActiveX Crystal Report in SBO Form

46 Views

Hi all,

I am trying to create a crystal report in a SBO Form with an activex but i cant found the classid of the activex.

I Have probed the same example but intead of a crystal reporf in SBO form, i have probed an internet explorer activex and work fine.

Here is my code:

LoadFromXML("pimprimir.srf")

frm = SBOApplication.Forms.Item("fimprimir")

Dim oItemX As SAPbouiCOM.Item

Dim oActX As SAPbouiCOM.ActiveX

Dim cr As CRAXDDRT.Report

Try

frm.Width = 800 ' get or create some form before

frm.Height = 600

oItemX = frm.Items.Add("cr", SAPbouiCOM.BoFormItemTypes.it_ACTIVE_X)

oItemX.Top = 200

oItemX.Height = 350

oItemX.Width = 750

oActX = oItemX.Specific

oActX.ClassID = "Here dont know what write" 'or use the GUID cr = oActX.Object

cr.ReportSource = "c:\CrystalReport1.rpt"

Samebody can help me?

King Regards,

Alfredo Temprano.