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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Previewing report in VB

Status
Not open for further replies.

deangelis

Programmer
May 13, 2003
54
ES
Hi,
I'm using CR8.5 e VB6. In my application I'm not using the new RDC but yet the OCX control for exporting the reports; but now, I want to view the preview of the report in the VB application. In the manual of CR I found the Report Viewer Control, but it has seemed to understand to me that with the Report Viewer I can use only a report made with the RDC and not the Ocx control. This is the phrase in the manual:

"The ReportSource property can accept a report in the form of a Report Object exposed by the Report Designer Component or the Crystal Web Report Server"

So, with the ocx control is not possible to preview the report?
Bye
N@pol€on
 
The OCX does not create a report. You need to call a report using the reportfilename property. The OCX, then call upon the print engine to view the report. This has its own viewer.

The crviewer, is a piece of the RDC.

and not to be used with the OCX. You need to assign a report source to the viewer so it knows what to load.

Basically, you need to migrate your application to use the RDC rather than the OCX. Check the Crystal site for this doc





Cheers,

SurfingGecko
Home of Crystal Ease
 
The PrintReport command should preview the report.

Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Expert's Guide to Formulas / Guide to Crystal in VB
- tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top