how to run crystal report by using OCX

rictsangrictsang Member Posts: 8
edited 2004-05-12 in Navision Attain
Hi,

I am using to run the crystal report in 3.6. For my understanding, I need to use OCX to connect to the crystal report in order to run. I wonder if anyone can provide the simple C/AL code example, for example, what OCX should be defined, how to call the crystal run in navision.

Thanks,

Rich

Comments

  • sylvia.choisylvia.choi Member Posts: 3
    I also need to call Crystal reports from Navsion.

    Found this OCX C:\WINDOWS\System32\CRYSTL32.OCX

    Anyone done this before? Can it call a .rpt file? Any ideas are welcomed. Thanks.
  • FPulsfortFPulsfort Member Posts: 43
    Hi All,

    Do not use the OCX, use the Automation. It has a lot more usefull functions.

    Have you searched this forum? Or have a look at http://www.mbsonline.org/forum/home.asp
    and search in this forum.

    Also have a look at the helpfiles and documentation from Crystal Reports. There are examples in VB or C++, but they are very helpfull, too.

    Hope this helps a little,
    Frank
  • sylvia.choisylvia.choi Member Posts: 3
    Hi FPulsfort,

    Thanks for the reply.

    You mentioned the automation server, are u refering to the RDC report designer component or something else? I am not too familiar with the crystal components.

    Basically, we want to launch ready made crystal reports from navision forms and pass in parameters to run the crystal report. Is that possible with the automation server? I need some concepts to jump start the implementation.

    Thanks so much.

    Weird... the site is not available..
    http://www.mbsonline.org/forum/home.asp
  • FPulsfortFPulsfort Member Posts: 43
    Hello Sylvia,

    I have done an implemetation of Crystal Reports in an other programming language (vfp) long time ago.

    Have a look at the Documentation in bookform (no file!) which should be in your Crystal Report box. There is an example of how to start!

    You can start an existing Report an give some paramters with the Automation Server!

    The side i mention has been active till yesterday. I think they work on it an it will available very soon!

    Try to create a variable of Type Automation and Subtype "Crystal Report Control". Then you have Properties and Methods (e.g. ReportFileName, PrintReport) to work with a report.

    Greetings,
    Frank
Sign In or Register to comment.