DavidNPD
asked on
Exporting a Crystal Report to HTML from within a VB6 Application
I have a crystal Reports application that is designed to run each night and move a couple of PDF files out to a network location each night, This works fine with the PDFs usign the code in the top section. I now want to add in another report that get moved out to the same locatoin but in the HTML format. When I run this code I recieve an error and it stops at the the "crptBBCadStatus.Export (False)" line. Can anybody spot what I am going wrong with the second set of code?
'This code works fine.....
crptCitations.ExportOption s.PDFExpor tAllPages = True
crptCitations.ExportOption s.FormatTy pe = crEFTPortableDocFormat
crptCitations.ExportOption s.DiskFile Name = ("\\Reports\citations.pdf" )
crptCitations.ExportOption s.Destinat ionType = crEDTDiskFile
crptCitations.Export (False)
'This code has a problem, and won't export like the above....
crptBBCadStatus.ExportOpti ons.HTMLFi leName = ("\\reports\pdf\BBCadStatu s.html")
'I tried it with and without the above line
crptBBCadStatus.ExportOpti ons.Format Type = crEFTHTML32Standard
crptBBCadStatus.ExportOpti ons.DiskFi leName = ("\\Reports\pdf\BBCadStatu s.html")
crptBBCadStatus.ExportOpti ons.Destin ationType = crEDTDiskFile
crptBBCadStatus.Export (False)
'If I take the above (False) away I get a naming dialog box.
'This code works fine.....
crptCitations.ExportOption
crptCitations.ExportOption
crptCitations.ExportOption
crptCitations.ExportOption
crptCitations.Export (False)
'This code has a problem, and won't export like the above....
crptBBCadStatus.ExportOpti
'I tried it with and without the above line
crptBBCadStatus.ExportOpti
crptBBCadStatus.ExportOpti
crptBBCadStatus.ExportOpti
crptBBCadStatus.Export (False)
'If I take the above (False) away I get a naming dialog box.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Must have just been a typo, I had checked all of your list already. Seems that it started working. Not sure why... Thanks for your reponse.
Thanks.
Glad I could help
mlmcc
Glad I could help
mlmcc
ASKER