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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OCX exporting property question

Status
Not open for further replies.

APS

Vendor
Sep 25, 2000
53
US
I am exporting a report to an RTF file everything works great except the an export options box comes up and asks for the page range to export. What property do I need to set to get it to bypass this and export all pages.

Thanks,
Anthony
 
With the OCX, there doesn't appear to be such a property. No matter what, that box comes up.

It's not a problem with the RDC technology, however. With these lines of code, you get no prompts.

Dim report As New CrystalReport1
report.ExportOptions.DestinationType = crEDTDiskFile
report.ExportOptions.DiskFileName = "foo.rtf"
report.ExportOptions.FormatType = crEFTRichText
report.Export False Brian J. Alves
Email: brian.alves@worldnet.att.net
VB / ASP / Crystal / SQLServer
 
I still get the export options box that ask for a page range with the options of ALL pages or to input a specific start and stop page.

Thanks,
Anthony
 

Report.ExportOptions.RTFExportAllPages = True
Brian J. Alves
Email: brian.alves@worldnet.att.net
VB / ASP / Crystal / SQLServer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top