VB using Crystal Reports


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: VB using Crystal Reports

  1. #1
    Join Date
    Nov 2004
    Posts
    293

    VB using Crystal Reports

    I have a VB program that runs a Crystal Report.

    Private Sub cmdCreateReport_Click()
    CRCreateReport.Action = 1
    End Sub

    The report runs fine but at the start of the report the user has to enter a number so the report knows what data to retreve for it's report. This question is part of the Crystal Report itself but I would like to enter this number from the VB program. Is there any way to do this ????

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Try:

    CRCreateReport.ParameterFields(0) = "ParameterName;Value;true"

    Obviously, you should replace ParameterName with name of the parameter whose value you want to set, and Value with the desired value.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center