Exporting to Excel in SSRS getting error when it crosses 65,000 rows - ssrs-2008

Exporting to Excel in SSRS getting error when it crosses 65,000 rows
I am using ssrs (BIDS) to create reports, I struck in exporting to excel when it crosses 65,000 rows. how to solve this problem in ssrs reports

Are you exporting as an .xlsx file? I know in pre-2007 Excel (.xls) the maximum row count was about 65,000.

I got the answer and I hope this is the another way to solve the above problem
generate sql table like this
col1 col2 grp
1 2 1
2 3 1
4 5 1
2 4 2
4 5 2
and give group by column as "grp" and make visiblility false for grp textbox in ssrs report. also in page breaks properties check the "between each instance of a group" checkbox. when you exprot to excel the data will come in differnt sheets for diffetent groups.
user this link for query - Increase row count in sql server after some count (say 25,000)

That's an excel 2003 limitation and SSRS does not support excel 2007.
You need to export to csv or add groups on your report (with 65k max rows) so each group will be exported as on sheet on the excel document

Related

Column Grouping Does Not display Duplicates

I have created a report in SSRS R2. The report is using tablix and column wise grouping.
The result set of the matrix is working fine as expected except that the consecutive same column values(or duplicates) are not getting skipped in display. Whereas my SQL is working perfectly displaying all data.
eg: sql Result set
1
1
2
3
Tablix Display (instead of) Tablix Display
1 2 3 (instead of ) 1 1 2 3
If you are grouping on the field that returns that data, then it removes duplicates by design - that's the point of grouping.
You would need to group by a different field, or just have no grouping on the tablix and only the Details region.
See here for more information on grouping: https://learn.microsoft.com/en-us/sql/reporting-services/report-design/understanding-groups-report-builder-and-ssrs

How to set Fixed Rows of Tablix in SSRS

How to do the tablix fix rows? I need to fix the report to maximum 5 rows, if record more than 5 rows will not show . If records is only 3 record, first,second & third rows will place the data and 4 & 5 rows will leave it blank.
Ideally you should achieve it in SQL query or stored proc.
However if you want to achieve it in RDL then you have to use RowNumber function in expression.Create a Row group and then restrict data set.Use expression =CEILING(RowNumber(Nothing)/5)
Please have a look at below link for your reference.
http://www.sqlchick.com/entries/2010/9/11/displaying-fixed-number-of-rows-per-ssrs-report-page.html

Dynamic vertical lines in Crystal Reports 10.5

Crystal Reports Ver 10.5
I have a crystal report which shows up to 9 fields, but user can choose between 1 to 9 fields. I have implemented this using check boxes on a form and user can select any box from 1 to 9 and generate a report. So the report can show from 1 field to 9, and any columns can be any field at a given time. (for eg. the user might select ID, Name, Phone from the form and view report. So the first column in the report becomes ID and so on. If he selected Name and Phone, the first column becomes Name and so on. I have done this using Parameter fields.
Now I would like to bring a vertical separation between columns and Only if the columns has data (Remember there can be 1 to 9 columns having data). I can't put the lines beforehand because they will be shown regardless of the number of fields shown.
Anybody has an idea of how to bring this vertical line between ?
Thanks in advance.

Excel Export Fail when Number of rows in the Excel sheet exceeded the limit of 65536 rows ssrs

In SSRS 2008 (I use Sql Server BIDS to create reports) how to solve "Excel Export Fail when Number of rows in the Excel sheet exceeded the limit of 65536 rows ssrs" issue
Thanks
Yes, this is a limitation of SSRS through 2008R2.
SSRS 2012, included with SQL server 2012 will remove this limit:
http://blogs.msdn.com/b/farukcelik/archive/2012/02/01/sql-server-reporting-services-ssrs-reporting-services-in-sql-server-2012-codename-quot-denali-quot-will-support-xlsx-docx-formats-bye-bye-65536-rows-limit-in-xls-files.aspx
The workaround for 2008R2 and before is to export as .csv
When your results are exceeding 65k rows (and you dont have SSRS2012), create a parent group on the tablix (or table, or list) and in the Group on: field enter the expression below.
Add Page break between each instance of a group
=CInt(Ceiling(RowNumber(nothing)/65000))
I think some Excel Versions can not support more then 65536 rows per se. You might consider to expand the data on several worksheets / tables.
A similar Issue is discussed here:
Is it possible to see more than 65536 rows in Excel 2007?
If your report is simple enough you can export as CSV, then import into Excel.
Export that data to csv file first.
then open a new Excel 2010 blank workbook.
Click file and open the exported csv file.
it will give you a Text Import Wizard prompt.
Continue clicking Next and then Finish.
If there is data that you need to keep as text ensure that in Step 3 of 3 you click Text for each column that you want to keep leading zeros if any.

Crystal Reports 2 column crosstab

Using crosstab expert in CRpts, populating the columns selection with 2 column names and using preview, report has I cannot tell what is what. Report has helpdesk total by date and out of that total there is a group count for another dept. Report looks great with one column selected. However, once I select a column fr db and select it to the columns with Crosstab expert, the columns in the report preview are displayed but hard to tell what is what since I get No and Yes columns. I also have Keep Groups together, column totals on top, and Row totals on left "checked" out.
I want to be have: grand toatl column(for helpdesk) total for Dist. Classrooms afected totals
Can you help? I am also new to CR and have not been able to make a "hit" researching.
Based on the above, I want a report to look like:
(col 1) (col 2) (col 3
Date Group District Classes Affected
Crosstab expert has: 2 rows, 2 summaries(sum on date and grandtotal on top), 1 col(which works great with only col 2 used as column but not when I include col 3).
District is count of district's in group
Classes Affected is count of groups count.
Is this better?