cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX: CrystalReportView

Former Member
0 Kudos

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!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I have the same problem. Do you have solved it ?

thanks

Former Member
0 Kudos

Have u ever tried to change the last line to:

oReport = o.Object

Former Member
0 Kudos

I would like to let you know of an SBO addon that we have created called CrystalWave. This addon integrates Crystal reports with B1. This might save you a some time trying to recreate the wheel. With this you do not have to install Crystal Reports on each machine. The addon also takes care of installing the .NET framework for you as a part of the install.

Please take a look at the following link:

http://www.twbs.com/CrystalWave.html

YOu can download a fully functional copy at http://www.twbs.com/selectcwversion.html

This will work only on the SBODEMO_US company.

Let me know if you have any questions.

Gopal Viswanathan