Solved

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

Posted on 2014-03-21
3
242 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now