Databases Reference
In-Depth Information
Reporting Services
Object Model
Reporting Services exposes its application program interface (API) through the Reporting Services
Web service that interacts with the actual Reporting Server. This appendix is meant to be a quick ref-
erence to the programmatic functionality that Reporting Services exposes through this Web service.
Relevant code for both C# and VB.NET has been provided in this chapter. Book formatting con-
straints may cause the code lines to wrap. However, note that the VB.NET code lines should
reside on one line in the code editor, even though no underscore has been inserted in such cases.
CancelBatch
This method cancels a batch of commands that are created by using CreateBatch and associated
with a particular BatchID. The BatchID can be changed to a value equal to the BatchID that was
generated when the batch was created through the BatchHeaderValue property of the Web service.
When CancelBatch is called, any calls associated with that BatchID value cannot be executed.
C#
public void CancelBatch();
VB.NET
Public Sub CancelBatch()
CancelJob
A job is a task that a report server is actively processing. CancelJob cancels execution of a job by
passing in the JobID associated with that job.
C#
public bool CancelJob(string JobID );
Search WWH ::




Custom Search