IAsyncRpt2::get_ReportLocale, put_ReportLocale Property [C++]

The ReportLocale property is a write-only long that identifies the locale of the report.

Definition

[C++]

Get method:

HRESULT IAsyncRpt::get_ReportLocale(
long ReportLocale
);

Put method:

HRESULT IAsyncRpt::put_ReportLocale(
long ReportLocale
);

[Visual Basic]

Property ReportLocale As Long

Parameters

Description[C++]

[in] Long integer containing the locale code to which you wish to set the report locale.

[out, retval] Long integer containing the current locale code of the report.

None. [Visual Basic]

[C++]

Return Values

These methods return an HRESULT indicating whether they completed successfully. See the Error Values section for more details.

Error Values

[C++] These methods return S_OK (0x00000000) to indicate success and standard COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.

[Visual Basic] This property sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Example

objReport.ReportLocale = Application("MSCSDefaultLocale")

Copyright © 2005 Microsoft Corporation.
All rights reserved.