Solved

Failed to export the report

Posted on 2003-11-12
5
2,619 Views
Last Modified: 2010-01-25
Hi Experts,
Development machine runs on Win2000(sp3) and am working with VB 6.0 and Crystal Report 8.5 (sp2). I have used Crystal Report Viewer control in my form. I was trying to export the report without asking from the user the format and path; but failed cause of this Run Time error.

   '*** Code starts from here ***
   Dim crApp As New CRAXDDRT.Application
    Dim crRep As CRAXDDRT.Report
       
    'Export to disk
    ' Location of the report
    'Set crRep = crApp.OpenReport(App.Path & "\DAILY REPORT.RPT")
    Set crRep = CRViewer.ReportSource
    crRep.ExportOptions.DestinationType = crEDTDiskFile
    'Export to PDF
    crRep.ExportOptions.FormatType = crEFTPortableDocFormat
    'Export path and file name
    crRep.ExportOptions.DiskFileName = "c:\MyReport.pdf"
    'Export without displaying the 'Export' dialog box
     crRep.Export False  '*? This line is generating Run Time Error '-2147190908'

I would really appreciate if someone helps me out.
Thanking You.
0
Comment
Question by:sjam1979
5 Comments
 

Author Comment

by:sjam1979
Comment Utility
Well,
I got the solution to the problem myself. It was version conflict with the Dll's which were updated during the installation of Service Pack 2 of CR.
Here's what I had done - Uninstall the Crystal Report and tried installing it again, that would bring the files with their original version.
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
Submit a request in the Community Support forum to delete this question

mlmcc
0
 

Accepted Solution

by:
modulo earned 0 total points
Comment Utility
PAQed - no points refunded (of 125)

modulo
Community Support Moderator
0
 

Expert Comment

by:Francisco_M
Comment Utility
This seems to be a registry problem. Pls make sure you the correct version of exportmodeller.dll and crtslv.dll on your machine in the right folders. Pls register them and give it a try!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now