Skip to Content
0
Former Member
Jul 14, 2005 at 04:04 PM

ActiveX: CrystalReportView

17 Views

Hi All:

I am trying to add the CrystalReportView object to a SBO form.

My problem is that caundo I assign to the ActiveX object to my CrystalReportView object the system to him: "the specified conversion is not been worth"

As it is the key of the registry? Somebody to been able to make that?

Dim oForm As Form

Dim oCreationParams As FormCreationParams

Dim oReport As CrystalDecisions.Windows.Forms.CrystalReportViewer

Dim oItem As Item

Dim o As ActiveX

'Inicializamos el formulario

oCreationParams = oAplicacion.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)

oCreationParams.BorderStyle = BoFormBorderStyle.fbs_Sizable

oCreationParams.UniqueID = "1"

oForm = oAplicacion.Forms.AddEx(oCreationParams)

oForm.Visible = True

oItem = oForm.Items.Add("3", BoFormItemTypes.it_ACTIVE_X)

o = oItem.Specific

o.ClassID = "CrystalReports.CrystalReportViewer"

oReport = CType(o.Object, CrystalDecisions.Windows.Forms.CrystalReportViewer)

THANKS!