I have an SSRS report name revenue. When i run the report, I get the desired result as per my development with row group. Problem is when I export this report data in excel, I get extra line added at each child row group which has garbage value.
Any suggestion will be really helpful.
Try exporting to CSV. This will remove the formatting and should provide a cleaner export to Excel.
Related
I have a requirement where I need to programmatically download the BIRT report in excel (xlsx) format and for a specific page range. Like (5-10).
By default it is generating the excel sheet with all the rows. Can anyone please help here.
Note: I am using the org.eclipse.birt.runtime4.4.1.jar.
Regards,
Sandip Mohapatra
It doesn't make sense, because XLSX is not a page-oriented format.
If instead you want to generate an XLSX with only the rows for records e.g. 51-100 then you should use a LIMIT clause in the SQL statement or something like that.
I have an analysis which contains hidden one column. While I'm trying to export result to .xlsx file, it works right, and hidden column doesn't print and calculation works fine. But when I'm trying to export it to .csv - either with ';' delimeter or tab-delimeter - hidden column appears.
There is no opportunity to exclude this column from analysis defenition because of field that I need to calculate, that has strong dependence on hidden column. Also I can't keep it in that form and remove column and add calculation by myself because this file after export automatically will be imported to database which has not enough space to make such operation every month till forever. Is there any way not to print hidden column and save prepared calculation while exporting to CSV?
No. CSV exports exactly what's in the analysis. That's its point and task. You can always clone your analysis, prepare the columns as you need and then just expose it as a download link.
CSV = exact, pure raw data as it's in the analysis construction
Excel = formatted based on what's rendered visually
I have a question regarding SSRS.
I have issues with formatting, I have a column that have a value like 1-5, Less than 1, >100 in my SSRS.
The issue is WHEN YOU EXPORT TO CSV ALL RECORDS THAT HAS A VALUE 1 - 5 CHANGED TO 5 - JAN.
From sql, excel all are perfect. The is issue is regarding csv export.
Is there any one who have an idea.
Thank
Your problem is not the CSV Export. If you open the csv file in a simple text editor, you will see the data as you expected ("1-5").
I assume you are opening the CSV file in Excel.
Excel is interpreting the text as a date. If you change the column formatting to general/text in Excel it should display correctly.
unfortunately I'm not an expert of Crystal Report, so I'll post here my question hoping for any help about my issue.
I want to display inside my report the result of a filter on a SQL RecordSet; this RecordSet is looked up from an a single table, of which I want to show some fields of my SQL table, while the filter I want to apply is based on a field parameter (defined static) that I'm trying to set programmatically.
Here below I attached my code where I'm applying the record selection formula, I tried also hard-coding the value instead of passing it through a dropdown selection:
ReportDocument RPT_Doc = new ReportDocument();
RPT_Doc.Load(RPT_Path_Name, OpenReportMethod.OpenReportByDefault);
ApplyConnInfos(ref RPT_Doc);
RPT_Doc.SetParameterValue("data_riferimento", "20161001");
RPT_Doc.RecordSelectionFormula = "{viaggi.data_part_pre} = '20161001'";
crystalReportViewer1.ReportSource = RPT_Doc;
In the first image attached you can find the field parameter definition, while second image is the record selection formula I defined inside my report:
The report always shows all the records of my table (more than ten thousand rows), instead of displaying a filtered RecordSet. The odd thing is Preview function from Visual Studio works like a charm; it prompts the field value, once I confirm the value the viewer displays the report with the rows filtered as I expect..
What am I missing from report/C# program configuration to make the record selection work?
Thank you in advance for any suggestion you can give me :)
Leonardo
Ok, finally we got the solution to our issue.
We found the CrystalReportViewer object used to display generated reports has 2 different properties, SelectionFormula and ViewTimeSelectionFormula; both has default value set to empty string.
Below I attached the picture of .Designer.cs file with the 2 properties valued:
We commented those 2 properties and the selection formulas and field parameters applied through code / report designer worked again.
I am stuck with a peculiar problem. Here is my situation. I have an invoice designed in Crystal Report. I want to provide a feature wherein the user can print multiple copies. The statutory requirement is that every copy will have different title (for e.g. 1st copy may have "Original", 2nd may have "Duplicate for Transporter", etc.) The invoice already has 2 sub-reports (1st for the items and 2nd for tax details). Now I am stuck up as to how do I get multiple copies of the same report with different title. Tried using sub-report but according to crystal report, one cannot use sub-reports within sub-reports.
Request all to please help me some idea. I little new to crystal report. Thanks to all in advance.
My environment is VS 2010, Crystal Report v13, SQL Server 2008, .NET 4.0.
If all data on your reports are the same and only the title is changed, you can set a textObject variable for your title on VB.
Here's how
Dim T As CrystalDecisions.CrystalReports.Engine.TextObject
T = cryRpt.ReportDefinition.Sections(1).ReportObjects("yourTextObjectFromXtalReport")
T.Text = "Your Title"
All you have to do is to set conditions on your program if you want to have multiple reports.
You can also print crystal reports programmatically by following this.
You can create a parameter Title and set the value each time you are printing the report. Drag the parameter to the report in order to have it printed