CHAPTER 10 MANAGING REPORTS
property to OK. When you’re done, you should have a form that looks like
Figure 10-29.
Figure 10-29. Pick Schedule dialog box
Now select View Code for the PickSchedule class. For this example, you’ll add a few using state-
ments to import types defined in other namespaces so you can avoid typing the full namespaces during
the actual coding. Add the namespaces shown in Listing 10-3 to the PickSchedule.cs class file below the
other using statements.
Listing 10-3. Importing Namespaces
using System.Collections;
using System.Diagnostics;
using System.Web.Services.Protocols;
using SSRS_Viewer_RVC.SSRSWebService;
Next, add the class variables shown in Listing 10-4 to PickSchedule.cs just below the class
declaration. The ReportingService2010 type contains the methods and properties you can use to call the
SSRS 2012 Report Server Web service and is made available through the Web reference you added to the
SSRS Viewer RVC project in Chapter 9.
Listing 10-4. Class-Level Private Variables
private string url;
private string server;
private string report;
private ReportingService2010 rs;
Next, modify the PickSchedule_Load event to query the SSRS 2012 server for the shared schedules
that are available.