Metareport
Keyword Index
Home




© 2004-2012 Metamatica Software

 

Methods

 

Top  Previous  Next

 

 

About

 

Description:

 

Displays the About window on the screen.

 

 

 

CloseReport(ByVal RepNo as Long)

 

Parameters:

 

RepNo – the number of the report returned by OpenReport.

 

Description:

 

Closes the report opened by OpenReport.

 

 

 

SetDateTimeParameter(ByVal ParameterName as String, ByVal Value as Date, ByVal RepNo as Long)

 

Parameters:

 

ParameterName – the name of the query parameter.

 

Value – the value of the parameter.

 

RepNo – the number of the report returned by OpenReport.

 

Description:

 

Defines the value of a query parameter of the DateTime type.

 

 

 

SetFloatParameter(ByVal ParameterName as String, ByVal Value as Double, ByVal RepNo as Long)

 

Parameters:

 

ParameterName – the name of the query parameter.

 

Value – the value of the parameter.

 

RepNo – the number of the report returned by OpenReport.

 

Description:

 

Defines the value of a query parameter of the Float or Double type.

 

 

 

SetIntegerParameter(ByVal ParameterName as String, ByVal Value as Long, ByVal RepNo as Long)

 

Parameters:

 

ParameterName – the name of the query parameter.

 

Value – the value of the parameter.

 

RepNo – the number of the report returned by OpenReport.

 

Description:

 

Defines the value of a query parameter of the Integer type.

 

 

 

SetReportLabel(ByVal LabelName as String, ByVal LabelValue as String, ByVal RepNo as Long)

 

Parameters:

 

LabelName – the name of the query parameter.

 

LabelValue – the value of the parameter.

 

RepNo – the number of the report returned by OpenReport.

 

Description:

 

Defines the value of the report label.

 

 

 

SetStringParameter (ByVal ParameterName as String, ByVal Value as String, ByVal RepNo as Long)

 

Parameters:

 

ParameterName – the name of the query parameter.

 

Value – the value of the parameter.

 

RepNo – the number of the report returned by OpenReport.

 

Description:

 

Determines the value of a query parameter of the String type.

 

 

 

StartReport(ByVal ReportName as String)

 

Parameters:

 

ReportName – the identifier (name) of the report project.

 

Description:

 

Starts the report using the built-in report parameters dialog box. The dialog box must be configured at the stage of creating the report.

 

 

 

StartReportWhithParameters(ByVal ReportNo as Long, ByVal Preview as Boolean)

 

Parameters:

 

RepNo – the number of the report returned by OpenReport.

 

Preview – the necessity of previewing.

 

Description:

 

Starts the report without using the built-in dialog box. Query parameters and label values in the report must be transmitted from your application before calling this method.

 

 

 

PrintToFile(ByVal RepNo as Long, ByVal FileName as String, ByVal FileFormat as MRFileFormat)

 

Parameters:

 

RepNo – the number of the report returned by OpenReport.

 

FileName – name of export file

 

FileFormat – format of export file

 

Available values of file format:

 

Value

Long Value

Description

ffText

0

Text file

ffCSV

1

Comma separated file

ffPDF

2

PDF file

ffHTML

3

HTML document

ffRTF

4

RTF document

ffWMF

5

Metafile.

ffXLS

6

Excel document

 

 

 

Description:

 

Starts the report without using the built-in dialog box, and saves into specified file. Query parameters and label values in the report must be transmitted from your application before calling this method.