Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am working on a ASP.Net MVC Web application.
My requirement is to trigger automated emails daily at specific time with pdf attachment. I have a custom web page, the contents of which changes hour by hour. This pages content should go into pdf attachment. This page can also have charts, grids etc.
Please suggest.

What I have tried:

I am working on a ASP.Net MVC Web application.
My requirement is to trigger automated emails daily at specific time with pdf attachment. I have a custom web page, the contents of which changes hour by hour. This pages content should go into pdf attachment. This page can also have charts, grids etc.
Please suggest.
Posted
Comments
Kornfeld Eliyahu Peter 9-Jul-18 2:45am    
First solve the 'Web page to PDF' problem than come back...
ZurdoDev 9-Jul-18 14:18pm    
You have several different issues and need to tackle each one separately. Where exactly are you stuck?
goshan2011 10-Jul-18 0:03am    
ok will focus on html to pdf conversion first. I have an action method that calls a web page. My requirement is once every day, this action method needs to be called, and this html should be converted to a pdf and saved in a location (this process should be automated- for automation i am thinking to use Hangfire as a back ground job processor).
For this i can go either for itextsharp and rotativa, not sure which one is good. Rotativa gives direct method for converting action to a pdf. But in some blog i read that it was not working on server. Even before that the version 1.7.4 installed from nuget is a failure, blogs are suggesting to use its pre release version , not sure if pre release versions works fine or not on server.It would be of great help if some one can help me in guidance pls.
ZurdoDev 10-Jul-18 8:14am    
1. I have used iTextsharp before and have seen that a lot of people use it. I don't know rotativa.
2. I don't know Hangfire, but you may want to move the logic of your code into a separate class outside of the mvc project so that it can be easily called from elsewhere. Otherwise you have to simulate someone browsing to that page (action).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900