Exporting blank SRS report to excel does not render the headers

I worked on RS reports for a while and had been confonted with this issue. When the report does not receive any resultset from the datasource it shows up only the header columns in the report manager which is all ok. In our case this particular report was being exported to Excel and strangely the RS did not send anything except a huge textbox with nothing in it.
And our requirement was that the excel spreadsheet should have the header columns even if there was no data. Now I thought of concatenating all the column names and use the NoRows property but that will be exported as 1 column rather than individual columns.

So I found some work-around for that and wrote up an article under SQL Server 2000. Check it out here.

posted @ Wednesday, March 28, 2007 2:47 PM

Print

Comments on this entry:

# Malhotra

Left by Shrawan at 7/8/2008 6:39 AM
Gravatar
Hi,
i am shrawan kumar malhotra. i am software engineer in Amplesys Technologies pune.

# re: Exporting blank SRS report to excel does not render the headers

Left by Monster at 10/13/2008 12:08 PM
Gravatar
Thanks this post

Your comment:



 (will not be displayed)


 
 
 
Please add 8 and 1 and type the answer here:
 

Live Comment Preview:

 
«September»
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789