Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

ssrs 2008 r2 export to excel Expand / Collapse
Author
Message
Posted Sunday, November 3, 2013 12:14 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Thursday, September 25, 2014 11:17 AM
Points: 377, Visits: 446

I have an SSRS 2008 R2 report, where I have users that want to export the reports to excel. They are able to export the reports to excel, and they want to be able to sort the data in excel. However they are getting an error message that says there is a problem due to 'merged cells'. Thus can you tell me what you would do to solve the problem?
Post #1510876
Posted Sunday, November 3, 2013 2:25 AM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Yesterday @ 3:15 PM
Points: 3,163, Visits: 1,378
If you have not used merged cells within your report then this would be caused by text boxes such as headers and footers that do not exactly match the widths of the columns within your table.

Example:

Text box for header 2.5 inches wide at top
Table with columns 1inch, 2 inches and 2 inches wide.

Output:
4 columns, 1 inch..1.5 inches..0.5 inches..2 inches

Header is a merged cell covering merged excel columns A-B
Table column 1 : excel A
Table column 2 : excel B-C
Table column 3 : excel D

If the header changed width to match one of the columns then no problem.

Text box for header 3 inches wide at top
Table with columns 1inch, 2 inches and 2 inches wide.

Output:
3 columns, 1 inch..2 inches..2 inches

Header is a merged cell covering merged excel columns A-B
Table column 1 : excel A
Table column 2 : excel B
Table column 3 : excel C

Table with no allow auto filter in excel.

Fitz
Post #1510879
Posted Sunday, November 3, 2013 9:03 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Thursday, September 25, 2014 11:17 AM
Points: 377, Visits: 446
Thanks for your answers! I still have the following additional questions:
1. "Table with no allow auto filter in excel.'? Can you tell me what you mean by the statement?
2. Is the export problem related to one tablix within the report? If the report has more than one tablix, would that make a difference?
If more than one tablix in the report causes a problem, how can I can certain each tablix lines up correctly?
3. Is there a way to make certain all the column headers and rows have the same width? If so, how would you accomplish this task?
Post #1510898
Posted Sunday, November 3, 2013 9:11 AM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Yesterday @ 3:15 PM
Points: 3,163, Visits: 1,378
wendy elizabeth (11/3/2013)
Thanks for your answers! I still have the following additional questions:
1. "Table with no allow auto filter in excel.'? Can you tell me what you mean by the statement?
2. Is the export problem related to one tablix within the report? If the report has more than one tablix, would that make a difference?
If more than one tablix in the report causes a problem, how can I can certain each tablix lines up correctly?
3. Is there a way to make certain all the column headers and rows have the same width? If so, how would you accomplish this task?


1. Typo should have been Table will now allow auto filter in excel
2. Same rules apply to multiple tables. Must have save widths. I have not tried page breaks to see if different pages have different column structures. This becomes very difficult with sub reports where the tables are not on the screen at the same time.
3. When using SSRS 2008 and later a blue line appears to allow alignment guides when dragging columns to other available objects. You can also use the width property in the properties window for each column.

Fitz
Post #1510900
Posted Sunday, November 3, 2013 9:29 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Thursday, September 25, 2014 11:17 AM
Points: 377, Visits: 446
Can you tell me what you mean by the following:
"When using SSRS 2008 and later a blue line appears to allow alignment guides when dragging columns to other available objects. "?
Post #1510902
Posted Sunday, November 3, 2013 9:55 AM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Yesterday @ 3:15 PM
Points: 3,163, Visits: 1,378
Better for you to try an example.

1. Create a new report and add two text fields one below the other, does not matter how far apart they are.

2. Change the width of one of the text boxes.

3. Now when you change the width of the other box to match a blue line will appear when then are aligned.

Fitz
Post #1510903
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse