Home > Archive > MS SQL Server Reporting Services > July 2005 > Another example for existing subscription.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Another example for existing subscription.
VR

2005-07-29, 3:24 am

Here is a shorter example of firing off an event for a subscription
that already exists on the server:

static void Main(string[] args)
{
ReportingService rs = new ReportingService();
rs.Credentials =
System.Net.CredentialCache.DefaultCredentials;

Subscription[] subs = rs.ListSubscriptions("reportName",
“user”);
rs.FireEvent("TimedSubscription", subs[0].SubscriptionID);
}

Obviously this is C#, but the VB code would be almost the same.

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com