Click here to Skip to main content
15,916,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
before all,excuse me because of the language.
how can i setup my application that user can customize the report and then print it or save it to other formats.for example change the location of the fields? fonts? colors? etc.
Posted

As .NET application developer, I'm sure your backend is SQL. So, the solution for your problem statement, is SSRS (SQL Server Reporting Services). To render the reports, you will use ReportViewer

C#
//the report classes are in the namespace: Microsoft.Reporting.WebForms
Collection<ReportParameter> paramList = new Collection<ReportParameter>();
string reportPath = ApplicationInfo.ScorecardReportPath;
paramList.Add(new ReportParameter("UID", "5"));

ReportViewer1.ProcessingMode = ProcessingMode.Remote;
ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://servername/ReportServer");
ReportViewer1.ServerReport.ReportPath = reportPath;
ReportViewer1.ServerReport.SetParameters(paramList);
ReportViewer1.ServerReport.Refresh();
 
Share this answer
 
Comments
The_Leader 19-Sep-11 3:17am    
i explain it again. i mean that is there any way that user of my application can change the report settings. like the design time, in crystal report?
change the position of the fields and etc.

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