Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 6th, 2004, 11:45 AM
Authorized User
Join Date: Oct 2004
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to Create a new Dynamic Crystal Report


I had got in a situation of creating a Crystal Report dynamically without creating a .RPT file externally.

Is there any way by which i can give the report fields dynamically and make the connection within the codes of VB6.


Ramkumar A D
Old July 27th, 2005, 02:12 AM
Registered User
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to priyanka

i m also facing same problem if you know hte solution pls tell me also
im working on Cystal reports 8.0 & vb 6.0. i m already created report in Crystal report & now i want to pass the date parameter in that report thought VB Form. if u know the suggestion hten pls tell me. if u can give empale then its good

Old July 27th, 2005, 02:49 AM
Friend of Wrox
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts


Creating a dynamic crystal report, presently API's
supplied by seagate do not allow you to do that.

We have to create a .rpt file (physical file) with
crystal reports and we can use that .rpt file in
vb6.0 to view it.

Here we can change the input param values to get the
data from the database. so the data of the report
changes depending upon the params passed.

For passing the date param to the report,
check the position of that param in your
rpt file

Form1.CrystalReport1.StoredProcParam(X) = CStr(Format(Date, "mm/dd/yyyy"))
WHERE X is the position in the .rpt file
(position, i mean it a first param or second param)
if it is first that X = 0 (like an array).

Hope this helps

With Regards,
Raghavendra Mudugal
Old August 31st, 2005, 02:18 AM
Registered User
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts


First of all you have to design the Crystal Report (This is Compulsory) i.e. set the required Fields to be Displayed, Font Style etc. and then only you can Use VB/Vb.net to set the condition for the records selection.


Ravinderjit Singh
New Delhi
Old October 7th, 2008, 10:39 PM
Posts: n/a

Follow the link . Its a step by step of Dynamic Crystal Report generation.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic crystal report n_alavii Crystal Reports 0 May 11th, 2005 04:56 AM
Dynamic crystal report n_alavii Crystal Reports 0 May 11th, 2005 04:54 AM
dynamic generation of crystal report abroc Crystal Reports 1 February 15th, 2005 05:39 AM
dynamic generation of crystal report abroc VB.NET 0 February 13th, 2005 06:54 AM
columns dynamic in crystal report Fabian Bonjour Crystal Reports 2 October 7th, 2004 06:04 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.