Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
231
Добавлен:
11.05.2015
Размер:
5 Мб
Скачать
☆

Action

Action specifies the trigger for the printing of the report.

Syntax

[form.]Report.Action = 1

For example:

CrystalReport1.Action = 1

«Prints the specified report.»

Remarks

Set the Action property to 1 in your procedure code (CrystalReport1.Action = 1) to print the report in response to a user event.

Data Type

Integer

Availability

Runtime

Related Report Engine Functions

PEStartPrintJob, Volume 2, Chapter 1

BoundReportFooter

BoundReportFooter indicates whether or not a footer is printed at the bottom of each page with a page number when printing a bound report.

Syntax

[form.]Report.BoundReportFooter[= {True|False}]

For example:

CrystalReport1.BoundReportFooter = True

«Displays a footer at the bottom of each page of the bound report with a page number.»

Crystal ActiveX Control Reference

178

Remarks

●This property is ignored if the ReportSource, Page 235, is set to 0.

●The default value for this property is False.

●This property/method is available for subreports.

Data Type

Boolean

Availability

Design Time; Runtime

BoundReportHeading

BoundReportHeading indicates whether or not a report title to be displayed at the top of the first page of a bound report.

Syntax

[form.]Report.BoundReportHeading[= Title$]

For example:

CrystalReport1.BoundReportHeading = “Box Office Report”

«Specifies that the title “Box Office Report” be printed at the top of the first page of the report.»

Remarks

●This property is ignored if the ReportSource, Page 235, is set to 0.

●If this property is left blank, no report title will be printed.

Data Type

String

Availability

Design Time; Runtime

Crystal ActiveX Control Reference

179

Connect

Connect specifies the information required to log on to an SQL server or an ODBC data source.

Syntax

[form.]Report.Connect[= DataSourceName;UserID;Password;DatabaseQualifier$]

For example:

CrystalReport1.Connect = “DSN = Accounting;UID = 734;PWD = bigboard;DSQ = Administration”

«Connects to the “Administration” database on the “Accounting” server using the user ID #734 and the password “bigboard”.»

CrystalReport1.Connect = “dsn=; uid=; pwd=bigboard; dsq=“

«Connects to a password-protected Paradox database. All that is being passed is the password “bigboard”.»

Remarks

●Use the Connect property when the report connects to only a single ODBC data source or SQL server, and only a single set of log on information is required. If the report connects to multiple data sources that require different log on information, use LogOnInfo, Page 205.

●Enter the parameters necessary to log on to the SQL server that you need to be activated for your report. Parameters should be in the following format:

DSN = name;UID = userID;PWD = password;DSQ = database qualifier

¾name is the server name or ODBC data source name,

¾userID is the name you have been assigned for logging on to the SQL server,

¾password is the password you have been assigned for logging on to the SQL server, and

¾database qualifier is the database name if your server uses the database concept.

●The database qualifier parameter, DSQ, is required only when it is applicable to the ODBC/SQL driver you are using. If your DBMS does not use the database concept, you do not need to specify the DSQ parameter.

●Before you can use this property for an ODBC/SQL database, you must install the ODBC/SQL driver for whatever SQL database you are planning to use, and put the Database/BIN location in your path.

●If you are connecting to an SQL or other password protected database directly, without going through ODBC, use the name of the SQL server for the DSN parameter.

NOTE: If you are currently using the VBX control in your application, you will not be able to print individual subreports.

Crystal ActiveX Control Reference

180

Data Type

String

Availability

Design Time; Runtime

Related Report Engine Functions

PESetNthTableLogOnInfo, Volume 2, Chapter 1

CopiesToPrinter

CopiesToPrinter specifies the number of copies to be printed if you are printing to a printer. Destination, Page 183, will specify that the job be sent to a printer rather than a window, etc.

Syntax

[form.]Report.CopiesToPrinter[= NumCopies%]

For example:

CrystalReport1.CopiesToPrinter = 3

«Prints three copies of the specified report.»

Remarks

●The number you enter must not be a zero or a negative value.

●This property/method is available for subreports.

NOTE: If you are currently using the VBX control in your application, you will not be able to print individual subreports.

Data Type

Integer

Availability

Design Time; Runtime

Related Report Engine Functions

PEOutputToPrinter, Volume 2, Chapter 1

Crystal ActiveX Control Reference

181

Соседние файлы в папке crystal