Article View: borland.public.csharpbuilder.language.csharp
Article #33errors with CrystalReports and exporting files
From: Mark Heschl
Date: Thu, 11 May 2006 21:43
Date: Thu, 11 May 2006 21:43
34 lines
2421 bytes
2421 bytes
Hi, I have created a dll in C# (from BDS2006) that contains a form with the CrystalReportViewer and the toolbar hidden. I have implemented my own toolbar. This dll is being called from a Delphi2006 Win32 application. There are two problems. 1) When I try to export the report to any file type (using ReportDocument.Export), I get an error mesage (Method 'ISCREditableRTFExportFormatOptions_reserved5' on type 'CrystalDecisions.ReportAppServer.ReportDefModel,EditableRTFExportFormatOpti onsClass' from assembly. 'CrystalDecisions.ReportAppServer.ReportDefModel, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=xxxxx' is overiding a method that has been overriden). When I try to export using the ReportDocument.ExportToDisk function, I get the same error. The export does not happen. When I show the native toolbar and try to export, I get the same error. I do not get the error if I run the code using a .NET calling application. 2) Same thing happens when I do a Refresh (using CrystalReportViewer.RefreshReport). The error I get a similar error. I would have gone with the native VCL component however, there is a problem with the tree view on the report when using the VCL component. Clicking on the treeview a second time to position yourself in the report freezes the app. The Crystal Reports knowledge base indicates that this is a known problem. How do I get the dll to work properly when calling it from a Delphi Win32 app and not throw the exceptions (other than not using Crystal)
Technical Details
Message-ID:
<4463afc8$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,44509c0227a0f1cf,start X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mark Heschl" <mark@no.spam.com> Newsgroups: borland.public.csharpbuilder.language.csharp Subject: errors with CrystalReports and exporting files Date: Thu, 11 May 2006 15:43:05 -0600 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 NNTP-Posting-Host: 205.233.109.211 Message-ID: <4463afc8$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1147383752 205.233.109.211 (11 May 2006 14:42:32 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail