I want to create a scheduler to email reports automatically in asp.net vb. I will set parameter for report and save it in the database. This report will be send automatically on the scheduled time.
I need some guidelines to start working on it. How will I send it OR how the system will recognize the schedule time and email the report.
If you want to go automatically, you will need to create a window application not asp.net. You can simply add a window application to generate crystal report and send mail.
Now how it will work automatically, you need to create a window task as below any of one links. In that you can give your exe path and give date and time schedule to run this exe.
http://www.makeuseof.com/tag/how-to-automate-windows-programs-on-a-schedule/
http://www.techsupportalert.com/how_to_schedule_programs_to_run_automatically.htm
In asp.net side, this can not do this.
There are free crystal reports schedulers. Why do you need to rediscover the hot water:
http://www.r-tag.com/Pages/CommunityEdition.aspx
http://www.groffautomation.com/
Related
I have got an application that needs to print reports at a distant location connected via the internet. Since there is no network printer we have to send reports generated through email and wait for someone to print them.
I was thinking if I can use windows service to automate the task
I've got the following options
get data from SQL Server base on filters transferred from distance location to generate crystal report and print it to the default printer.
get the report in pdf format from distance location & print it to the default printer
is any one of the options possible.
I'm asking for some help here since I've not created a windows service up till now for anything
Your guidance is highly applicated
Thanks a lot
Amit Saraf
Yes, your application can use the Crystal runtime and trigger a printout or an export of a report without any display to the screen.
Alternatively, the application can use a command line API of several cheap/free 3rd-party Crystal tools (typically, they are called viewers or schedulers) to achieve the same thing. The command line API would allow you to specify the rpt file, parameters, login info, printer destination, export format, export file, etc.
Yess window services generate and print the crystal report:
Firstly you have install the packages from nuget but you have use VS.
Step 1: Create the Database
Step 2: Create the Window Service
Step 3: Install the Windows Service
Also help from this link:
http://aspalliance.com/1917_Automate_delivery_of_Crystal_Reports_With_a_Windows_Service.3
I need to automatically email the contents of a datatable daily at a particular time(10AM and 8PM). Without running the application how will i achieve this.. Please help me.. How to autogenerate emails at a particular time
You can use sql mail write a stored procedure that runs on a schedule using job services. Don't need c# and console app is a pain to build deploy and another app to manage.
Let me start by asking for your patience as I am ignorant of SSRS and not so sharp on the WCF technology that I intend on using to perform the task I want.
I have a SQL Server Express instance with data I want to get daily reports out of. I can not schedule tasks on SQL Server (and the reports server I think I can in the full blown but not in Express) , but I can schedule via windows task.
So I am writing an application that will use predefined rdl's to generate my reports and send the reports back via email. I am not sure how rdl's data connection is set from my C# application - I created rdl's in its own project, but it looks like I need to do rdlc conversions for my application.
What I would like to do is query the database via the reports and then send those reports out in an email to a set group of recipients (pulled from their email field in the users=reports result table.
[FYI] I also have a web application that might need to generate these same reports.
Now on to my question:
I am not sure if I even need WCF to do anything here, as it looks like from this post Creating a PDF from RDLC report that I can simply run that code and point to my data source and the bytes will be returned to me (so far fine for a desktop quick and dirty getter - I think)
Now is the same functionality possible in a web application - it would be nice to reuse the same code.
Can some one provide me with some proper guidance for this kind of functionality with the technologies involved - so I can code something proper and maintain KISS principle.
I am working on application where reports are scheduled using Web Application build on asp.net C# language [.Net 4.5 framework] . This Application uses a Drop-down to take report parameters a category and a Email Address which is saved in Database.When some user wants a report for particular category then he select category and report is generated using saved database parameters and this report automatically emailed to that email address using web application.Report is generated using ReportViewer ReportViewer.ServerReport.Render(); to convert into excel sheet. Report viewer itself is hidden from users.ReportViewer only used to genrate excel sheet.Problem is if we have 50 mails then application keep running for 5 Hours which is very frustrating.I have heard about ssrs scheduled reports , but how can i set parameters using Web Application GUI also I need a one click send button on Web Application.If the user log out then it is scheduled in database and reports are genrated in queue.Please guide me with correct approach. I hope i am able to make every thing clear.
Thank you.
advanced hello to all
I made an application in C# , in that app I have some report created with crystal report
is there any way to running this report without installation crystal runtime in clients machine
maybe using crystal report that installed on server ?
thanks
farzad
If you know when and who will need the report you can use a scheduler. There are few vendors who produce schedulers for Crystal reports. The way how it works is : You will choose the report, the parameters , the export type (PDF, Excel, Word, HTML etc.) and the time when the report should be started. The scheduler will run the report, export it and deliver it. Depending on the scheduler you might be able to deliver the exported files to a network drive , e-mail address, SharePoint etc. Her is a link to an article comparing different schedulers:
http://kenhamady.com/cru/comparisons/desktop-scheduling-engines
I don't think there is no way to run a Crystal Report on a computer without installing the client components locally. You could, however, develop a service running on the server machine, which takes a report from a client, renders it to PDF (for example) and sends the results back for displaying on the client. This wouldn't be a simple task though, since you might also have to consider further input from the client (like report parameters, which you can't even determine at runtime without the client components) and have to implement communication over the network.
Otherwise, maybe you are more interested in a web-based approach and need Crystal Reports Server?