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

EXPORTING CR v8.0 to html thru vb5

Status
Not open for further replies.

albab

Programmer
Jul 29, 2001
7
MY
I'm developing vb5 programming to run crystal report and export it to html format.i've tried the below command but it does't work.
It export into text file and not in the actual format.


Set crystalExportOptions = crystalReport.ExportOptions
crystalExportOptions.CharFieldDelimiter = ","
crystalExportOptions.CharStringDelimiter = "'"
crystalExportOptions.DiskFileName = "Test.tst"
crystalExportOptions.UseReportDateFormat = True
crystalExportOptions.HTMLFileName = "TestHTML.htm"
crystalExportOptions.FormatType = 3
' 0=no format, 1=crystal report, 2=data interchange,
' 3=html, 4=richtext, ... 14=word for windows, and lots of others
' look for CRExportFormatType in the Object Browser

crystalExportOptions.UseReportNumberFormat = True
crystalExportOptions.DestinationType = 1
' 0=no destination,1=diskfile,2=mapi,3=mailVIM,4=MicrosoftExchange
' found under CRExportDestinationType in the Object Browser

Call crystalReport.Export(False)

when using promt,it works.DO HELP ME.
TQ
 
Which version of CR and which integration method? If not sure, see the FAQ in the general forum on what to include in your question. Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
I'm using CR8 with Crystal Report Automation Server
would it be better if using RDC?
thank's for the reply

albab.
 
You be using old documentation, Export FormatType 3 is not HTML (it should be 24 for Standard 3.2), and I am not sure on some of your other commands, like naming both DiskFile and HTMLFile. I would look up the ExportOptions object model in the developers help file that came with CR8. Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
Thank's Ken,
I'll try to figure it out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top