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

Setting a default "export to" location in crviewer?

Status
Not open for further replies.

laki

Programmer
Mar 23, 2002
10
CA
Hi all,

I've developed an app using VB6, CR 8.5 developer with the RDC selected.

I'd like to be able to set a default target destination when a user clicks the export button in the crviewer.

Right now, when a user clicks the export button, it goes into a default temp directory (on W2K) and the user will have to navigate to their target location for every report (there are several reports available).

I've tried setting the ExportOptions.DiskFileName on the report object, but that didn't seem to help...

Any suggestions?

Thanks
 
I'm using Windows XP and this works for me:
Private Sub Command1_Click()
With CrystalReport1.ExportOptions
.DiskFileName = "c:\atob4\help.rtf"
.FormatType = crEFTExactRichText
.DestinationType = crEDTDiskFile
End With
CrystalReport1.Export (False)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top