Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal Reports
Message
De
05/06/2002 12:23:02
 
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Titre:
Divers
Thread ID:
00661492
Message ID:
00665019
Vues:
26
Many more files are needed, not just two. For example, each export format requires its own DLL. The best thing is to look at Runtime.HLP that ships with Crystal Reports. It lists which files are needed are what folders they need to be in.


>Hi Derek,
>You need to have two files to use Crystal Reports effectively. The first is the actual crystal report, (let's call it some_report.dsr and it should be in the Designer folder of your project) and then the crystal report viewer (let's call it some_report.frm and it should be in the Forms folder of your project). The code for the form viewer should look something like this:
>=======================
>Dim Report As New some_report
>
>Private Sub Form_Load()
>Screen.MousePointer = vbHourglass
>CRViewer1.ReportSource = Report
>CRViewer1.ViewReport
>Screen.MousePointer = vbDefault
>
>End Sub
>=============================
>Ensure that the database is verified by going to "Field View" and right clicking on Database Fields then selecting "verify database" (from the some_report.dsr file). Make sure that the "Field Object" and "Text Objects" exist and then you should be able to view the report providing the data is there.
>
>When calling the report from a page just use the same code as you would when calling upon a typical form. i.e. some_report.Show
>
>That should do it!
>
>Max
>
>>Does anyone know how to us CRViewer control in visual basic >to view reports, print, export, search, load, etc. Please any help >would be great
>
>
>>Derek J. Klingman
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform