Results 1 to 14 of 14

Thread: [RESOLVED] Help First time Use of Crystal Reports11

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2006
    Posts
    320

    Resolved [RESOLVED] Help First time Use of Crystal Reports11

    I need some help to just call the crystal report from a simple VB6 form. No bells no whistles, just view and or print the report. The report is named Guide.rpt. It looks and prints fine from CR11. I just can not seem to find WORKING code to call the rport up from the vb6 program.
    Thanks
    Bill

  2. #2
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Re: Help First time Use of Crystal Reports11

    Look at my post in this thread:

    http://www.vbforums.com/showthread.php?t=449420

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2006
    Posts
    320

    Re: Help First time Use of Crystal Reports11

    Ok, I saw that one earlier, what calls the RunReport(). If I call the runreport() on formload I get error user defined type not defined on the first line of your code
    VB Code:
    1. Dim crxApp As New CRAXDDRT.Application


    If I do nothing besides your code I get no errors or results


    What am I doing wrong

  4. #4
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Re: Help First time Use of Crystal Reports11

    you have to add the reference to your project. on your toolbar go to Project>References then check off Crystal ActiveX Report Viewer Library 11.0...

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2006
    Posts
    320

    Re: Help First time Use of Crystal Reports11

    I have the component added. See the screen shot.
    Attached Images Attached Images  

  6. #6
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Re: Help First time Use of Crystal Reports11

    Yes, you have the component added but you also need to add the Reference.

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2006
    Posts
    320

    Re: Help First time Use of Crystal Reports11

    Is this what you mean? If so it was already here,


    Bill
    Attached Images Attached Images  

  8. #8
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Re: Help First time Use of Crystal Reports11

    yes.

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2006
    Posts
    320

    Re: Help First time Use of Crystal Reports11

    Ok, this brings me back why I am I getting this error. I know I am doing something wrong I just do not know what it is.



    Bill
    Attached Images Attached Images  

  10. #10
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Re: Help First time Use of Crystal Reports11

    ahh sorry I missed a reference... try adding:

    Crystal Reporst ActiveX Designedr Design and Runtime Library 11.0

  11. #11

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2006
    Posts
    320

    Re: Help First time Use of Crystal Reports11

    Thanks that fixed the first error Now I need to know how to address the variable error.

    Thanks
    Bill
    Attached Images Attached Images  

  12. #12
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Re: Help First time Use of Crystal Reports11

    crView is the name of the control on the form... you can change that to whatever the name is on the control.

  13. #13

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2006
    Posts
    320

    Re: Help First time Use of Crystal Reports11

    Thank you Thank You Thank you. My last question is WHERE do you find the information to use these components and how to code them??

    I have other ideas that I want to pursue but now I'm not sure it's worth the trouble.


    Thank you

    Bill

  14. #14
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Re: Help First time Use of Crystal Reports11

    The support from Business Objects really isn't that helpful. I pretty much learned mostly everything from this forum and trial and error. Usually people around here are as helpful as can be if they know the answer. I would just keep posting if you are stuck on something. Just make sure to mark the thread resolved once you have found what you are looking for.

    Good luck!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width