Solved

Failed to export the report

Posted on 2003-11-12
5
2,622 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
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 100

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

815 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

7 Experts available now in Live!

Get 1:1 Help Now