Guilherme Pereira wrote:
Hi Guilherme,
Could you please let me know how did you get the screenshot in another page and save it as an image on the server ?
This is an old post of yours but I was wondering how you did that, especially the "...and then use another that takes a screenshot of that page and returns the image" part. I currently use HtmlToPdfConverter and need pdf output.
Thanks a lot!
Hi Ravi,
The component has a generatepdf and a generateimage. This last one receives a url and returns the binary of the image which you can store on the db and include in your email.
Hope this helps,
Guilherme
Thank you for your response. I am getting Access denied error when trying to generate image.
You're trying in debug mode when you try it in runtime do you get the same error?
You seem to be using a personal environment. What is the url you're using on the generate image?
I recommend you looking at the FAQ and double check your configuration. After that use the FAQ guidance to troubleshoot what the problem might be,
Thanks,
Hi Ozan,
At the time I didn't use Html2Pdf because if i recall correctly it din't work for screenshots (Generate image was not present I think) or was done in an older version of the platform. So the solution was completely done in .NET.
If it was today I'd probably use the same solution you have and use Html2Pdf for that.
Cheers,
Thanks Guilherme. I guess Html2Pdf is not enough for rendering pages with JS. HighCharts uses a lot of JS, so I had to use PhantomJS with a wrapper .NET class.
Thank you for your help.