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
>Syntax >[form.]Report.PrinterStartPage[= StartPage%] >For example: >CrystalReport1.PrinterStartPage = 7 >>