Capturing an image of a web form
Posted on 2014-01-19
I have a web form with quite a few controls on it (check boxes, textboxes, etc). Once the user fills the whole thing he click a big “Submit” button. At this point all the data on the form is saved to the database, but at the same time, I also need to save a picture of the entire web page.
It doesn’t have to be an image file, it can be a PDF or something else, but I need something that shows how the entire web page looked at the time of submission.
Does anyone have an idea of how to do this? I’ve seen an example using a WinForm WebBrowser control to open the page and then render it to a BMP, but I need to capture the form with all of the user’s input on it, and I would like to avoid having to reconstruct the whole form’s state.