Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error in Crystal report
Message
From
29/07/2011 09:29:24
 
 
To
All
General information
Forum:
ASP.NET
Category:
Reporting
Title:
Error in Crystal report
Miscellaneous
Thread ID:
01519577
Message ID:
01519577
Views:
165
Hi

I've set up a little crystal report which just lists some data from a table. No parameters etc

I've created a small program to run it . (below)

using System.IO;
using System.Net.Mail;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.ReportSource;
using CrystalDecisions.Shared;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
ReportDocument report = new ReportDocument();

report.Load(@"C:\Nicksworkspace\MMU_Reports\testreport1.rpt");

report.ExportToDisk(ExportFormatType.PortableDocFormat, @"C:\Nicksworkspace\MMU_Reports\report.pdf");

When I get to the ExporttoDisk I get this

System.TypeLoadException was unhandled
Message=Method 'ISCREditableRTFExportFormatOptions_reserved5' on type 'CrystalDecisions.ReportAppServer.ReportDefModel.EditableRTFExportFormatOptionsClass' from assembly 'CrystalDecisions.ReportAppServer.ReportDefModel, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' is overriding a method that has been overridden.
Source=CrystalDecisions.ReportAppServer.DataSetConversion
TypeName=CrystalDecisions.ReportAppServer.ReportDefModel.EditableRTFExportFormatOptionsClass
StackTrace:
at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.DotNetExportOptionsToEromExportOptions(ExportOptions exportOptions)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName)
at ConsoleApplication1.Program.Main(String[] args) in C:\Documents and Settings\nicholas.mason\my documents\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs:line 16
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:


Any thoughts on what this error message is trying to tell me.

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform