469,953 Members | 2,235 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,953 developers. It's quick & easy.

Crystal Report Problem in ASP.net

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.Expo rtPDF(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.
Jan 8 '08 #1
0 1019

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Stephan | last post: by
13 posts views Thread by kristoff plasun | last post: by
reply views Thread by Dr. Indera | last post: by
2 posts views Thread by Mythran | last post: by
1 post views Thread by Karthic | last post: by
1 post views Thread by bthomas71chevy | last post: by
reply views Thread by Chris | last post: by
9 posts views Thread by Altman | last post: by
11 posts views Thread by =?Utf-8?B?cmtibmFpcg==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.