PreviousNext
Help > Proxy Classes > CalculationClient Class > CalculationClient Class Methods, Functions > GetReportLink Method
GetReportLink Method

Applies To

WebService.CalculationClient

 

Description

An URL is obtained to a web page which shows the report of the calculation which has been saved to the database. The type of report should be specified in the Options before calling this method. Please see ReportType of Options for more information.

 

Syntax

Function GetReportLink(Account tAccount, Options tOptions, string strTitle)  As WebService. HyperLink

 

Example (C#)

//Get a report of loading instruction

//A member ReportType for which report to be shown

WebService.Options Options = new WebService.Options();

Options.ReportType = WebService.Options.ReportEnum.LoadingInstruction;

 

//Create the report link object and call the function

//Pass the account, option and a title of the shipment to be opened

WebService.HyperLink ReportLink = client.GetReportLink(Account, Options, Shipment.Title);

 

//Open the web browser of your PC to navigate to the URL returned by the above function

System.Diagnostics.Process.Start(ReportLink.URL);

Parameter

 

Parameter

Type

Description

tAccount

WebService.Account

A reference to an account instance to be passed to the service.

tOptions

WebService.Options

A reference to an options instance to be passed to the service.

strTile

string

A title of the calculation to be presented in the report.

An instance of the HyperLink is returned.

 

Data Type

WebService. HyperLink