Crystal Reports 2008 (designer) can help you and others identify the report(s) through Summary Info. With this blog I would like to show how it can be added/set using Crystal Reports .NET SDK.
Why should Summary Info be used?
How to add/set it from Crystal Reports Designer?
How to set it using Crystal Reports .NET SDK?
Use following code which is quite simple to implement.
Sample Code |
---|
ReportDocument rd = new ReportDocument(); rd.Load(Server.MapPath("CrystalReports.rpt")); rd.SummaryInfo.KeywordsInReport = "Quantity, Products, OrderID "; rd.SummaryInfo.ReportAuthor = "Saurabh"; rd.SummaryInfo.ReportComments = "This is intended for testing"; rd.SummaryInfo.ReportSubject = "Adding Summary Info to reprot"; rd.SummaryInfo.ReportTitle = "SummaryInfo"; rd.SaveAs(Server.MapPath("CrystalReports.rpt")); |
Automating this process, one can really save lot of time to complete this activity manually.
Note: Don't forget to close and dispose the ReportDocument object after the completion of the task.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 | |
4 | |
3 | |
3 |