LOCAL oCR AS CRAXDRT.Application
LOCAL oRpt AS CRAXDRT.Report
LOCAL oExp AS CRAXDRT.ExportOptions
oCR = CREATEOBJECT(“CrystalRuntime.Application”)
oRpt = oCR.OpenReport(“C:\Temp\Taz.RPT”)
oExp = oRpt.ExportOptions()
oExp.DestinationType = 1 && crEDTDiskFile
oExp.FormatType = 27 && Excel <---- THIS ----------
oExp.DiskFileName = "C:\Temp\Taz.XLS"
oRpt.Export(.F.)
>Export what?
>How?
>
>
>
>>Does anyone know what the codes are for the formattype?
>>
>>I know these:
>>1 = Crystal Reports
>>27 = Excel (but not sure if this is the data only one)..
>>
>>I kinda wanna know what they are for these:
>>
>>Adobe Format (PDF)
>>Crystal Reports (RPT)
>>HTML 3.2
>>HTML 4.0
>>MS® Excel 97-2000
>>MS® Excel 97-2000 (Data only)
>>MS® Word
>>ODBC
>>Record style (columns no spaces)
>>Record style (columns with spaces)
>>Report Definition
>>Rich Text Format
>>Separated Values (CSV)
>>Tab-separated text
>>Text
>>XML
ICQ 10556 (ya), 254117