CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2000
    Location
    Hong Kong
    Posts
    94

    How to pass data to Crystal report

    Hi:
    Here I have a simple question. In a crystal, how can I pass data to it , but not from Database. In the form I can create a text field then pass to it. In Datareport, I can create a label then pass to it.
    But How can I do it in Crystal report. Should I create a formula first ??
    In anybody know about it or have good tutorial about how to use Crystal report. It will be very helpful. Millions of thanks in Advance!!
    Yeung

    wky086

  2. #2
    Join Date
    Feb 2000
    Location
    Ireland
    Posts
    808

    Re: How to pass data to Crystal report

    YEs if you want to pass data from you form to a crystal report then use formula fields.
    Create a formula field on your report (Myfield) then in your sunroutine where you run your report
    you can use
    Crystal1.Formulas(0)= "Myfield='" & text1.text & "'"


    The best place for tutorials is seagates site http://community.seagatesoftware.com/homepage/



  3. #3
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: How to pass data to Crystal report

    Thanks, Tony.

    Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

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