Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Failed to export the report

Posted on 2003-11-12
5
Medium Priority
?
2,633 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
4 Comments
 

Author Comment

by:sjam1979
ID: 9731169
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 101

Expert Comment

by:mlmcc
ID: 9731385
Submit a request in the Community Support forum to delete this question

mlmcc
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 11861505
PAQed - no points refunded (of 125)

modulo
Community Support Moderator
0
 

Expert Comment

by:Francisco_M
ID: 20348688
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month6 days, 8 hours left to enroll

783 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