Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ExportOptions 1

Status
Not open for further replies.

julian92128

Programmer
Apr 26, 2001
5
US
Can some one help me, I'm trying to export a report to rpt from a visual basic program, but it gives me the message box asking for options, I want this to be set in code.


Thanks in advance


Julian
 
Just like you can do Report.Export, you can do Report.ExportOptions.whatever, and set many export options.
 
Dim repReport as (your report designer name here)
Dim crystalExportOptions As ExportOptions

Set crystalExportOptions = repReport.ExportOptions

crysExportOptions.DestinationType = crEDTDiskFile
crysExportOptions.DiskFileName = "your output file name"

' pick a format like ...

crysExportOptions.FormatType = crEFTExcel80
' or
crysExportOptions.FormatType = crEFTRichText

repReport.Export false
Brian J. Alves
Terrier Consulting, Inc.
Email: brian.alves@worldnet.att.net
VB / Crystal / SQLServer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top