Skip to Content
author's profile photo Former Member
Former Member

ActiveX Crystal Report in SBO Form

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 07, 2006 at 12:25 PM

    Hi Alfredo

    When you find ClassID, you find in regedit.

    This and exemple for CR9:

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

    oItem.Width = pForm.ClientWidth

    oItem.Height = pForm.ClientHeight

    Set o = oItem.Specific

    o.ClassID = "CRViewer9.CRViewer"

    Set oVisor = o.Object

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Thanks Adele,

      In case of preview the report on VB.net form how can i show this form without all SBO forms will freeze?

      Becouse i preview the .Net form well but if i minimize or move the form the SBO is freze and dont let me do any transaction with the crystal report form opened.

      I have read that i can do this with treads but i don know how.

      Have yo post a little example o anything to search information?

      Thank again,

      Alfredo Temprano.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2007 at 03:53 AM

    Hi Alfredo

    I know it's been a while since you posted this but I think I have found some of the answers to this post.

    And I have stumble myself upon some deployment problems regarding CR. Are you still working on CR ?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.