Issue related to Dynamic grouping in RDLC Report - c#

I have ASP.Net Application having couple of RDLC Reports,
I have generated report with dynamic columns using Parameter form..
now i want to Generate RDLC Report that use Dynamic group.. means Parameter form will have some Columns listed in Dropdown box, and when user select any column.. RDLC report will generated based on group by selected Columns from dropdown box..
how can i do it using code?? please give me some basic idea or C# Syntax
Thanks..

Related

Table with multiple sub table in .rdlc report in C#

I am working on window application in Visual Studio (C#). I want to create a dynamic report in c# using .rdlc report. And i want to generate table with multiple sub tables in it as per requirement or filter in report (something like in grid view). I attached a sample image. I want to generate report like as report in attached image. Please provide me some suggestion how can I do this.
Report Format
You can achieve this either by grouping your data or with subreports. I would recommend grouping.
Here are two MSDN links that can help you:
Create a Stepped Report
Add a Subreport and Parameters

How to design report at run time SSRS

most of the time we point store procedure or table and then SSRS report designer show us field and we just drag drop those field on to report designer surface. after all we call those report programmatically and pass parameter and report shown on report viewer.
now my company want that customer will customize the report who will see the report. they want to display all the fields in a form and just customer will select each field and place on report designer surface and give some input like filter condition like date range or employee id etc and report will be shown. also at run time if customer want they can add text or move existing field etc.
i do not have any idea how could i do this with SSRS. if this is possible with SSRS then please guide me in such a way as a result i can start the job or if possible give me few relevant url of that kind from where i can get the idea. thanks
SSRS is capable of reading reports generated on-the-fly, but they have to be made just right. SSRS reports are XML documents that specify the data structure and report object structures and how the two are related. Using Visual Studio, you can use certain classes to create the XML document which is then read & filled with data on the server, then exported to the client as a standard webpage.
Here is a link to a tutorial. This should be a good starting point.
Here is a small but working example of generating RDL on-the-fly with some useful links to MSDN documentation: "How to dynamically generate SSRS Report in Code"
Hope it helps!

How to set the name of crystal report columns from code behind file in asp.net

I have to design a report where i need to set the names of crystal report columns pragmatically from c# code as number of columns in report are fixed but there name are varying in each instance..upto now i have made simple reports in crystal report so have no idea of it..
I have tried it with making use of crystal formula but i did not get the desired result..
please guys help me to get over this issue.
Thanks in advance..
As you said you have worked on crystal reports I am giving below solution if your requirement is only throguh code my solution doesn't fit you.
Create columns in crystal reports and while naming the columns use forumla and write the
If else conditions to show the headings dynamically

How to create generic rdlc templates with dynamic data tables generated at run time?

I have an rdlc report in my solution.
I want to set the report datasource with run-time generated data table.
How can I do that?
I haven't used any xsd file to design the report.
I just want to display the data table from the database on the report.
Try this link.
In the link you will see a class is added to the application and it is used as DataSource. You can add as many data sources as you want. You can also add more than one DataSource in one RDLC report.

How to filter Crystal Reports in C#?

How can I filter my entered data in one form that contains a text field into the 2nd form that contains the Crystal Reports viewer using C#?
Create a field in your Report and fill it programmatically before rendering the report. The report can filter on this field.
i think what you need is something call parameterization in crystal report
http://www.dotnetheaven.com/UploadFile/SaifiFFC/CrystalReport07122007062723AM/CrystalReport.aspx

Categories