Question : RS 2005 - An error occurred during local report processing and rendering of my report - problem with report header

Hi
In Reporting Services 2005, I am getting an error in the Print Layout view of my report.  It renders fine in the Preview screen of the VS Development IDE, but when I click print Layout I get the following error messages:

An error occurred during local report processing.
An error occurred during rendering of the report.
An error occurred during rendering of the report.
Operation is not valid due to the current state of the object.


When I deploy my report to the server to see what happens there, the report renders fine initially, but when I export to PDF or try to print, I get the same error messages.  

This report is extremely similar to other reports I built (same parameters, same groups, similar data) and that are working fine. It has one table with six groups.  There are 21 static columns.  I copied this report from another that it was similar to, and the major difference in this report are the expressions I have in many of the row objects to hide rows based on conditional expressions.  The code works great in Preview mode, but when I select Print Layout or try to print, or export to PDF, the above error messages are gotten.  The report only began to work when I deleted the textboxes in my report header.  Its weird.  When I put expressions in textboxes in the report header, the report won’t render in PDF or Print Layout.  When I put a string such as “FOOBAR” in a report header textbox then there is no problem.  I have many other reports that are using the same textboxes with the same expressions in the report header.  

I am using Reporting Services 2005, Version 9.00.2047.00.  WinXP

Thanks

=chita=

Answer : RS 2005 - An error occurred during local report processing and rendering of my report - problem with report header

Well, my solution is a good workaround, so I think it should be accepted.

Regards,
Yurich
Random Solutions  
 
programming4us programming4us