Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Crystal Reports
Divers
Thread ID:
00667021
Message ID:
00667090
Vues:
23
You are using the RDC. The properties you get errors on do not exist. You have to carefully read the help file as there are several integration methods and they are not identical. The RDC is recommended.

It might help to add some intellisense to your code. Put the following lines at the top of the method/prg.
LOCAL oCrystalApp AS CRAXDRT.Application
LOCAL oReport AS CRAXDRT.Report
>I have the following code:
>
>
>cReportName = "c:\reports\myreport.rpt"
>cDataFile   = "c:\reports\mydata.dbf"
>
>oCrystalApp = CREATEOBJECT("CrystalRuntime.Application")
>oReport = oCrystalApp.OpenReport(cReportName)
>
>oReport.Database.Tables(1).Location = cDataFile
>
>iCollated         = oReport.PrinterCollation
>iPrinterCopies    = oReport.PrinterCopies
>iPaperOrientation = oReport.PaperOrientation
>iPaperSource      = oReport.PaperSource
>iPrinterDuplex    = oReport.PrinterDuplex
>iEndPage          = oReport.PrinterEndPage
>iStartPage        = oReport.PrinterStartPage
>sPrinterName      = oReport.PrinterName
>sDriverName       = oReport.DriverName
>sPortName         = oReport.PortName
>
>
>When I run this, I gen an "Unknown Name" error on some of these property
>assignments, like PrinterCollation. Others work fine.
>
>I did a search for PrinterCollation in the help file, CrystalDevHelp.chm, and
>found an entry with the syntax:
>
>Syntax
>[form.]Report.PrinterStartPage[= StartPage%]
>For example:
>CrystalReport1.PrinterStartPage = 7
>
>
>So I looked at the entry for PrinterInfo, which states:
>"A PrinterInfo Object is obtained from the PrinterInfo property of the
>Report Object."
>
>Yet, on the report object above, there is no PrinterInfo property
>
>Anyone know whats going on?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform