Click here to Skip to main content
15,884,077 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am building a large batch of reports that will be exported to excel on a frequent basis and printed on letterheads. Long story short, every time the report has the data placed to print correctly straight from SSRS(2012) it is not aligned on Excel and the same the other way around.

Does anyone know how to fix this?

Thanks
Posted
Comments
Kenneth Haugland 17-Oct-13 12:36pm    
I actually dont get this, are you printing excel files from SSRS?
Paulo Augusto Kunzel 17-Oct-13 12:42pm    
No, the user is exporting SSRS reports to excel and printing from there. Having them printing only straight from SSRS is out of question, unfortunately, so I am trying to see the best way to tackle this situation.
Kenneth Haugland 17-Oct-13 12:48pm    
I dont know what SSRS are exept some database component, but I do know excel, so is the export to excel done with a build in function that you didnt build yourself?
Paulo Augusto Kunzel 17-Oct-13 12:57pm    
SSRS -> SQL server reporting services
After creating a report it provides the possibility to print or export in various formats, one being xlsx. When doing so, for some reason it doesn't keep the distances which were set beforehand, ever. Probably it has to do with SSRS, but I am not sure

1 solution

Hi Paulo,

What format is not getting maintained? Is it that the data does not look good because of the cell size?

I am not sure what is the exact issue, but a suggestion would be - set the row height in Tablix to 12.75pt and set "CanGrow" to "False"

This should make your excel output look better. Only catch here is as "CanGrow" is set to false so you won't see the entire cell content unless you expand the cell in Excel.

If I did not understand your problem, then could you describe more about the formatting issue you are seeing.

Thanks,
Anil
 
Share this answer
 
Comments
Paulo Augusto Kunzel 10-Nov-13 6:08am    
Hello Anilsharma0902,

That is one of the issues, the other one being the fact that, if I align a field at 1cm from the top and 6cm from the left, when I export it doesn't stay there. I've removed the margins and everything, but the issue continues...
Member 3931158 10-Nov-13 9:33am    
By "align the field" you mean set the padding. When you say "removed the margins", what you mean? If you have padding set on the field, it should stay. Provide RDL or screenshot or a mock output you are getting and trying to achieve.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900