CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Crystal reports

  1. #1
    Join Date
    Sep 2001
    Posts
    160

    Crystal reports

    Can anyone help me out with sample code or point to a website. I need to take data from a vb form (text boxes and data fields no recordsets) and pass it to a crystal report. I am new to crystal. I think I Know how to start a new report and create a parameter field.

    Thanks for any help.

    Jason

    PS

    If anyone posts sample code, can you tell me how to copy it and paste it into vb code without it running across the screen.



  2. #2
    Join Date
    Aug 1999
    Posts
    9

    Re: Crystal reports

    In that particular section of crystal report where you want to show any content from VB form, Insert a text box of crystal report
    and use settext property of Crystal report textbox

    textbox1.settext VBFormName.text1.text





  3. #3
    Join Date
    Sep 2001
    Posts
    160

    Re: Crystal reports

    Can you tell me how to execute the report from the vbcode. From your message I do not need to pass any data. Is that correct?

    Thanks,

    Jason


  4. #4
    Join Date
    Dec 2001
    Posts
    2

    Re: Crystal reports

    You have to put a crystal activeX into gour form. Name it Crystal1. Then use a command button. the code is :
    Command1_click
    Crystal1.Action=1
    But first you have to change the properties of the control, with right click and select the report you want to execute


  5. #5
    Join Date
    Sep 2001
    Posts
    160

    Re: Crystal reports

    Thanks for your input. That works. I am just having trouble getting data from a textbox on my vb form to the report. Maybe I am doing something wrong. Is there any thing else that I should be doing. I have version 8.

    Thanks,

    Jason



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

Featured