" An error occurred during local report processing."
I keep getting the error :
An unhandled exception of type 'Microsoft.Reporting.WinForms.LocalProcessingException' occurred in Microsoft.ReportViewer.WinForms.dll
Additional information: An error occurred during local report processing.
This occurs on the line:
report.Render(
"Image", deviceInfo,AddressOf CreateStream, warnings)I'm trying to use some code posted here to print without using the report viewer's print preview and no matter what I try (and I've created several simple reports), I keep getting this error. Is there any way to get more info on the error to pinpoint it's cause?
BTW, here's the version number of the dll file listed above if that helps any. 8.0.50727.42
I can not find this "inner exception info". I simply get a message box with "an error occurred during local report processing" with Break or Continue buttons. Again, Where will I find this info? My project is stopped at this point because the issue can't be resolved.
I was finally able to find the "inner exception" info. Here's what i added:
Try
report.Render(
"Image", deviceInfo, AddressOf
CreateStream, warnings)Catch
e As
System.ExceptionDim
inner As
Exception = e.InnerExceptionWhileNot
(inner IsNothing
)MsgBox(inner.Message)
inner = inner.InnerException
EndWhile
EndTry
The second line above is from the code posted about printing without print preview so the try-catch block goes around it. I was finally able to determine the error occurring which was a datasource had not been supplied (which was but the name didn't exactly match). Anyway, the report successfully printed this afternoon without a print preview!!!