Using CrystalReportViewer to Display Crystal Reports in .Net - Toolbar Functions
(Page 4 of 4 )
We can manage the functionality of each button programmatically by using the methods associated with it. The buttons on the bar are in the following order, with the listed functionality.
We can enable or disable this tool bar by setting the property "Display ToolBar" to True or False. We can also enable or disable each button on the toolbar by setting their individual properties to True or False in the property window. All of these properties can be set programmatically to make our report more dynamic.
We can enable or disable ToolBar programmatically as follows:
CrystalReportViewer1.Display ToolBar = False
We can set other properties in a similar fasion.
We can also use CrystalReportViewer to display data from other data sources such as XML files, flat text files, and so forth. With the help of Viewer you can even view multiple reports at once with tab reporting. You can refresh current data in the report. You can print a report as well as export a report in various formats such as .PDF, .RTF, Excel, Word and HTML.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |