Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Reports - What am I doing wrong?

Status
Not open for further replies.

sjn78

Programmer
Feb 22, 2003
92
AU
I have VB 6 and using the crystal reports that comes on the cd.

I have read a few threads about this but nothing has been able to help me. I cant get anything working to do with the reports.

Firstly, I want to know if I have the right components on the form. I have the CrystalReport and CRViewer on there.

I have created a report in crystal reports and saved it.

Now, is this correct, should I read that report into the app and display it? If so, what is the quickest and easiest way to do this.

Any help would be great, as I am stuck with this

Thanks

Steve
 


If you have the old CrystalReport OCX on the form, you don't need the viewer. It's contained in the OCX. You can access the report this way:

' Put the OCX on the Form and in the Form_Load event put:
CrystalReport1.ReportFileName = &quot;<path to your report>&quot;
CrystalReport1.Action = 1

I suggest looking into the Crystal Report Design Component (RDC) which integrates into the VB IDE and uses the CRViewer.

Mark
 
Thanks for that, I have finally seen how it is suppose to work.

Just one other thing, can you refresh the report?

eg, The report was generated from a database and that database in used in the app. Now that the database has changed, is there a quick way to refresh the report or is that not possible with this method.

Thanks

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top