[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Exporting a Crystal Report to HTML from within a VB6 Application

Posted on 2004-08-27
4
Medium Priority
?
345 Views
Last Modified: 2010-08-05
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.ExportOptions.PDFExportAllPages = True
crptCitations.ExportOptions.FormatType = crEFTPortableDocFormat
crptCitations.ExportOptions.DiskFileName = ("\\Reports\citations.pdf")
crptCitations.ExportOptions.DestinationType = crEDTDiskFile
crptCitations.Export (False)
                       
'This code has a problem, and won't export like the above....
                       
crptBBCadStatus.ExportOptions.HTMLFileName = ("\\reports\pdf\BBCadStatus.html")
'I tried it with and without the above line
crptBBCadStatus.ExportOptions.FormatType = crEFTHTML32Standard
crptBBCadStatus.ExportOptions.DiskFileName = ("\\Reports\pdf\BBCadStatus.html")
crptBBCadStatus.ExportOptions.DestinationType = crEDTDiskFile
crptBBCadStatus.Export (False)
'If I take the above (False) away I get a naming dialog box.
0
Comment
Question by:DavidNPD
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 150 total points
ID: 11918856
What is the error?

Do you have permission to write to the pdf directory?

Can you export the report using the pdf code?

Do you have the HTML export driver installed?

mlmcc
0
 

Author Comment

by:DavidNPD
ID: 11919030
OK I am a little lost here, I just went in to run it again to give you the error and it is running perfectly. Let me look at this some more and see what I changed.
0
 

Author Comment

by:DavidNPD
ID: 11921086
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.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 11924156
Thanks.

Glad I could help

mlmcc
0

Featured Post

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question