Displaying a Quick Report
Quick Reports are predefined reports that you can reuse.
In order to execute a Quick Report use the ExecuteQuickReport web method.
You need to send the report identifier number as a parameter to this method.
In order to receive a list of all available Quick Reports use the GetQuickReportsList web method.
Below are examples that execute report number 5 and display the result in
DataGrid Windows Forms Control.
Example in Visual Basic .Net
Try
'create an instance of the proxy
class
Dim BTService As New Elementool.BugTrackingWse
Dim grdReport as New DataGrid
'Execute web method and bind datagrid
to the table in the result dataset.
dgrReport.DataSource =
BTService.ExecuteQuickReport(5).Tables(0)
Catch ex As Exception
MsgBox(ex.Message)
End Try
Example in C#
try
{
//create an instance of the proxy class
Elementool.BugTrackingWse BTService = new
Elementool.BugTrackingWse();
DataGrid grdReport = new DataGrid();
//Execute web method and bind datagrid to the table in the
result dataset.
dgrReport.DataSource =
BTService.ExecuteQuickReport(5).Tables[0];
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}