Solved

Failed to export the report

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

630 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