" 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

[904 byte] By [Sledgehammer] at [2007-12-24]
# 1
The exception should have an inner exception set that contains more details on the problem. Can you post that inner exception message?
BrianHartman-MSFT at 2007-10-8 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...
# 2
How do I get to this "inner exception"? Where will I find that info?
Sledgehammer at 2007-10-8 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...
# 3
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.
Sledgehammer at 2007-10-8 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...
# 4

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.Exception

Dim inner As Exception = e.InnerException

WhileNot (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!!!

Sledgehammer at 2007-10-8 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...

Visual Studio

Site Classified