IAsyncRpt2::RunReport Method [C++]

Use this method to initialize the AsyncRpt2 object and to render or export a static report asynchronously.

Definition

[C++]

HRESULT IAsyncRpt::RunReport(BSTRbstrRepParam);

[Visual Basic]

Sub RunReport(bstrRepParam As String)

Parameters

  • bstrRepParam[C++]
    [in, out] A BSTR used to supply parameters to the AsyncRpt2 object.
  • bstrRepParam[Visual Basic]
    A String used to supply parameters to the AsyncRpt2 object.

Return Values

[C++] This method returns an HRESULT indicating whether it completed successfully. See the Error Values section for more details.

[Visual Basic] None.

Error Values

[C++] This method returns S_OK (0x00000000) to indicate success and E_FAIL (0x80004005) to indicate failure. For more information about standard COM errors, see Standard COM Errors.

[Visual Basic] This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to E_FAIL (&H80004005) to indicate failure. For more information about standard COM errors, see Standard COM Errors.

Remarks

The AsyncRpt2 object calls the ReportRender2 object, passing it the bstrRepParam parameter.

[C++] The bstrRepParam parameter is identical to the sParamString parameter of the Init method of the ReportRender2 object. For more information, see ReportRender Object.

[Visual Basic] The bstrRepParam parameter is identical to the sParamString parameter of the Init method of the ReportRender2 object. For more information, see ReportRender Object.

See Also

[C++]AsyncRpt2 Object

[Visual Basic]AsyncRpt2 Object

Copyright © 2005 Microsoft Corporation.
All rights reserved.