Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal Reports Change Location of Database
Message
 
À
18/02/2002 18:47:35
John Mcdonald
Mcdonald Consulting Group
Fort Myers, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00621721
Message ID:
00621725
Vues:
8
Check that you don't have the option "Save Data With Report" enabled in the report definiton when you save it. This is under File,Report options.

Randy

>I'm trying to use the OCX for Crystal Reports through Foxpro and I can get it to run with the stored data in the report. I am trying to change the location of the report to point at another spot. It doesn't change the report.
>
>The report is a simple list, the database is exactly the same but I am changing it to look at another directory.
>
>crystalapplication = CreateObject("Crystal.CRPE.Application")
>crystalReport = crystalApplication.OpenReport("C:\PFSAR\LOGIN.RPT")
>
>**The Following line I change the source from c:\pfsar to o:\pfsar
>crystalReport.Database.Tables.item(1).location="o:\pfsar\login.dbf"
>**
>
>crystalReport.ExportOptions.FormatType = 3
>crystalReport.ExportOptions.DiskFileName = "c:\pfsar\test.txt"
>crystalReport.ExportOptions.DestinationType = 1
>crystalReport.Export(.t.)
>
>Thanks in advance.
>
>Any ideas?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform