PC Review


Reply
Thread Tools Rate Thread

Crystal report error.. Please help

 
 
smtwtfs007@gmail.com
Guest
Posts: n/a
 
      8th Jan 2008
Any body has any idea about his error please?

I got this error at the time of creating crystal report. I tried
everything to resolve this error. But I could not. Please help.

Exception has been thrown by the target of an invocation. at
System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters,
CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean
verifyAccess) at
System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters,
CultureInfo culture, Boolean verifyAccess) at
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.VisualBasic.CompilerServices.LateBinding.FastCall(Object
o, MethodBase method, ParameterInfo[] Parameters, Object[] args, Type
objType, IReflect objIReflect) at
Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(Object
o, Type objType, String name, Object[] args, String[] paramnames,
Boolean[] CopyBack, Boolean IgnoreReturn) at
Microsoft.VisualBasic.CompilerServices.LateBinding.LateCall(Object o,
Type objType, String name, Object[] args, String[] paramnames,
Boolean[] CopyBack) at
SentryDotNet.ReportComponents.ExportFunctions.ExportPDF(String
ExportFilePathName, Object& crReportDoc)

ExportPDF has the following code

ExportPDF(ByVal ExportFilePathName As String, ByRef crReportDoc As
Object)

Dim crExportOptions As ExportOptions
Dim crDiskFileDestinationOptions As
DiskFileDestinationOptions

'Set the options for saving the exported file to disk
crDiskFileDestinationOptions = New
DiskFileDestinationOptions
crDiskFileDestinationOptions.DiskFileName =
ExportFilePathName


'Set the exporting information
crExportOptions = crReportDoc.ExportOptions
With crExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType =
ExportDestinationType.DiskFile
.ExportFormatType =
ExportFormatType.PortableDocFormat
End With

'Export the report
crReportDoc.Export()

THis has been working good. The only change I have added is including
2 new columns in XSD file and also on the report, SQL query. SQL query
is working fine and returning results.

But when I am trying to create PDF crystal report using the above
ExportPDF function. It thrown error.

Any help please?

THanks.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending Crystal Report to Network Print Mailbox While Bypassing Crystal Report Viewer. John Smith Microsoft VB .NET 0 17th Jan 2007 04:17 PM
Crystal Report - LoadSaveReportException: Load Report Error =?Utf-8?B?Q3J5c3RhbCBSZXBvcnQgLSBMb2FkU2F2ZVJlcG9y Microsoft VB .NET 1 15th Mar 2005 08:17 PM
Change Crystal Report Zoom Level using percentages in Crystal Report Viewer (Dotnet) Alex Stevens Microsoft Dot NET Framework Forms 1 30th Jun 2004 12:34 PM
Change Crystal Report Zoom Level using percentages in Crystal Report Viewer (Dotnet) Alex Stevens Microsoft Dot NET 1 30th Jun 2004 12:34 PM
crystal report viewer error: invalid report source Harshil Patel Microsoft Dot NET Framework Forms 0 4th Nov 2003 08:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:39 AM.