public method O2GSession.getReportURL

Brief

Gets the URL for receiving the combo account statement report.

Declaration
C#
string  getReportURL (O2GAccountRow account, DateTime dateFrom, DateTime dateTo, string format, string reportType, string langID, int ansiCP)

Parameters
account

The account row.

dateFrom

The start date of the report period.

The specified date will be used as the start date of the report period from the time of beginning of the trading day, independent of the specified time.

You can specify the date which corresponds to the zero OLE date (DateTime.FromOADate(0)) in order to get the report since the account opening.

dateTo

The end date of the report period.

The specified date will be used as the end date of the report period to the time of ending of the trading day, independent of the specified time.

You can specify the date which corresponds to the zero OLE date (DateTime.FromOADate(0)) in order to get the report to today.

format

The report format.

HTML

HTML format.

XML

XML format.

PDF

Adobe PDF format.

XLS

Microsoft Excel XML document format.

reportType

Use "REPORT_NAME_CUSTOMER_ACCOUNT_STATEMENT" for simple accounts and "REPORT_NAME_CUSTOMER_ACCOUNT_STATEMENT_PAMM" for PAMM accounts.

langID

The language and locale of the report.

enu

English

jpn

Japanese

fra

French

esp

Spanish

cht

Chinese Traditional

chs

Chinese Simplified

rus

Russian

ansiCP

The code page. Use 0 in order to use the default code page for the specified language and locale.

Returns

The method returns the URL which can be used to load the report using the HTTP/GET command. The URL is valid only during the current session. In case of an error, the method returns an empty string.

Details

The date and time in the report can be either in the UTC time zone or in the time zone of the server. It depends on the BASE_TIME_ZONE and SERVER_TIME_UTC system properties (see O2GSystemPropertiesReader.Properties for details). In case the value of the SERVER_TIME_UTC equals UTC, the date and time in the report will be in the UTC time zone. Otherwise, the date and time will be in the time zone specified in the BASE_TIME_ZONE system property.

Declared in O2GSession

back