Solved

Scheduled reports -  sending via .Net 4.5, sql or Windows scheduled task?

Posted on 2014-03-21
3
245 Views
Last Modified: 2014-03-27
My Web app has the ability to generate reports

Now I want to schedule some reports,  I. E send at a certain time (configured by user)  every day

The usual way I know of is to write a console app and run it as a scheduled task

However I was doing that 10 years ago
Is there anything in. Net 4.5 or. Sql server that can automatically hit a Web service to generate the reports?
0
Comment
Question by:websss
  • 2
3 Comments
 
LVL 13

Expert Comment

by:devlab2012
ID: 39946984
There is in-built functionality in reporting services. You can use report subscriptions. Here is a link for details:

http://technet.microsoft.com/en-us/library/cc872783.aspx
0
 

Author Comment

by:websss
ID: 39949635
Thanks
but i'm using telerik reporting which has .net code that is needed to run in order to send the reports
0
 
LVL 13

Accepted Solution

by:
devlab2012 earned 500 total points
ID: 39950984
Instead of creating a console application, you can achieve the same thing by creating a simple web page and a small vbs file. Here are step by step instructions:

1. Create a normal web page that will generate and send the reports. Write all the code in Page_Load as this page will not be used by a user, instead it will be called through code.

2. Create a vbs file to call this page. Use the complete url of the page in the vbs file.

3. Run the vbs file at a scheduled time using Windows Task Scheduler.

Here is a complete tutorial of creating vbs files to run a web page:

http://www.orcsweb.com/blog/using-task-scheduler-and-a-vbs-file-to-request-a-web-page-on-a-scheduled-basis/
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question