| برنامه نویسی کریستال ریپورت با ویژوال استودیو 2005 |
| Crystal Reports For Visual Studio 2005 CrystalReportViewer Object Model Tutorials |
| در ين کتاب طرز استفاده از Crystal report در VS2005 را خواهيد آموخت. |
Introduction When you use the CrystalReportViewer object model to log on to a secure SQL Server database, you must use classes from the CrystalDecisions.Shared namespace. The properties of the ConnectionInfo class are used to connect to the database server or ODBC data sources. In this tutorial, you set the ServerName, DatabaseName, UserID and Password properties. If you choose only to set the DatabaseName, UserID, and Password properties, then you are logged on to the default server of the database that you have specified within the report. However, if you choose to assign an alternate ServerName property, you can redirect the report to a different server at runtime. You retrieve the TableLogOnInfos instance from the LogOnInfo property of the CrystalReportViewer control. Then, you assign the ConnectionInfo instance to each TableLogOnInfo object in the TableLogOnInfos instance. The logon code in this tutorial also works for subreports that are inserted into the main report. For the ReportDocument object model, you must modify the code to work for subreports. The ReportDocument object model is recommended over the CrystalReportViewer object model. |