on 07-14-2005 5:04 PM
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!
I have the same problem. Do you have solved it ?
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have u ever tried to change the last line to:
oReport = o.Object
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.