We are using MS Report Viewer for exporting Reports to Excel, now we have a problem when trying to sort data, its reporting error that there are merged cells and it can't be sorted. So is there a way to disable cell merging when exporting to excel?
Thanks in advance.
To my knowledge there is no way to turn this off. However, I only notice it being a problem when I use page headers or page footers. This is why often times I'll make page headers and footers optional in my reports to avoid the Excel merge cell issue.
Related
I have a crystal report to export formats like pdf, csv and excel for student records. When I am trying to export to excel the page header (eg. title, page no, footer) are not repeating for each student in excel , it is working fine in pdf and csv files.
Any solution to repeat page header,page no,footer for each student record using c# asp.net crystal report.
When you export a crystal report to Excel you should get a pop-up that looks like this.
In the middle of this window is an option for "Export page headers and page footers:" and you should be able to control this setting as desired using the drop-down box. Just set it to "On each page" and you should be good to go.
One thing to note, if you are exporting to Excel as "Data-only" the pop-up window for Excel Format Options will be different and will not include the same controls for this feature. When exporting as Data-only there will just be a check box for "Export page header and page footer", and this will only export the page header and footer once for the entire report.
Edit: Here is a link that might help with the API for Excel Format Options on an exported report. Click here to see an example with code.
I created a Windows Form Application using C# that have a few Crystal Reports. Whenever I try to export the crystal report in Excel using the Crystal Report Export build in button, the excel formatting output is completely different. My Subtotal and Grand Total does not align with the corresponding column. Any idea what I can do to fix it or is it a flaw in crystal report exporting coding?
When exporting to excel, there are several reasons that can cause formatting issue. For example, If you go to Export options Using the column width of Header 1 may give you better formatting that the whole page. The best way to avoid formatting problems when exporting to excel is designing your report around the fact that it will be exported to excel. That means try to keep the fields in every section aligned. so if you have two .5 in fields in one section. and you have another field in the section below it. Make that field .5 or 1 in and align it with the fields above it. Also make sure all the sections are fitted by right clicking a section and click fit to section. If your still getting unwanted black rows when exporting,
1.)Right click section 2.)click arrange lines 3.)right click section 4.)click fitSection
you should have provided the screenshot of your report.... but will try to answer to the extent I understand.
This is not a flaw in crystal report...normally detail fields have extra columns compared to grand totals or group summaries so the wayout would be to insert dummy text fields before the sub totals and grand totals so that those are alligned correctly.
If this is not your requirement post a screenshot of how the report looks like and how do you need the output
I have a ssrs report which display in multiple pages. I have set page size 10 and it's showing 10 recorod but I have to export all the data in one excel sheet because when i export it's comming multiple sheet. I need single sheet for all the data.
You can use Report Properties and then reduce the height of your page. and remove your paging formula which you used in grouping. it will work.
I'm using Microsoft Report Viewer in an ASP.Net application on the 4.0 framework. I have the report showing fine inside the webpage, but I was recently requested to hide several columns. I found out that through editing the Column Visibility by right clicking on the column in the .RLDC file would allow me to hide it, but I need to be able to show the hidden columns upon Exporting to Excel. As far as I can tell Microsoft Report Viewer exports exactly what it has shown to Excel.
Does anyone know how to access or change the columns properties upon the export to excel click event on Microsoft Report Viewer 2010?
Your best bet is to add your own export functionality.
Set ShowExportButton="False" in the ReportViewer and add a new button in your page that hides the columns and then exports the report to excel.
I have added an RDLC Report in my .Net Application.
Data generates in reports with Proper design.
But when I tried to export it into Excel, I get some columns Merged in more than one Cells...
How can I prevent Columns into merging cells ??
To avoid merged cells in exported SSRS reports, you need to verify that cell alignment is Excel-friendly. This usually can be fixed by making sure that headers and footers are aligned with the columns in the details area. The right side of a header, footer, or other object should align with the right side of the report columns, same goes for the left.
If you still experience issues, this MSDN blog post includes some additional workarounds.