Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Very useful VFP + Crystal Reports article
Message
De
06/02/2002 13:56:57
Sergio Ortiz
Tek Services Group, Llc
Hollywood, Floride, États-Unis
 
 
À
30/01/2002 15:14:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00612993
Message ID:
00616218
Vues:
23
Hello Craig,

I followed your article ( Using Crystal Report with VFP ). It is a great start!.

I have the following need :

I created a report in Crystal with one parameter ( date ) and I ran it using the example from your article. I am able to preview the report and print the report. The problem is that everytime I refresh the data by clicking the refresh button on the toolbar and then typing the date for the parameter I get the following message :
"Server has not yet been opened"

How do I refresh the data ( SQL SERVER )?. Is there any example that can show me how to accomplish this?. Where I can look at all the properties and methods available for the Viewer.

The database is a SQL Server.

The code that I used from your article is the following :
WITH Thisform
      * Instantiate Crystal Runtime 
      * and add the report viewer to the form
      .oCrystalReports = CREATEOBJECT("CrystalRuntime.Application")
*      .oReport = .ocrystalreports.OpenReport("C:\temp\Cust.rpt")
      .oReport = .ocrystalreports.OpenReport("r:\DailyCashReceipt_withownview.rpt")      
      .AddObject("oleCRViewer", "oleControl", "crViewer.crViewer")      

      WITH .oleCRViewer
            * Set report viewer properties
            .Top = 1
            Left = 1
            .Height = ThisForm.Height - 2
            .Width = ThisForm.Width - 2
            .ReportSource = ThisForm.oReport
            *.EnablePrintButton = .F.
            .ViewReport()
      ENDWITH
ENDWITH
Thanks,

Sergio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform