I have a vb.net page that has a bunch of gridviews, labels, images that the HR dept uses regularly to maintain data. Once they are finished with the page they click a "completed button". This click updates the data so they know it has been processed, and
I need to figure out a way to keep a "permanent record" of what was all displayed on the screen. (They want to save a copy of what was on the screen electronically)
I've worked with iText before, but I don't think printing to .pdf it's the way to go because of the complexity of the layout and all the gridviews/labels, etc. Is it even possible to take a screen shot of the web page and save it as a .gif/jpg/tif?
I'm open to ideas, and am not familiar with storing the html of the page as a blob. Can you explain further? (I'm trying to get rid of the process where they manually do a File | Print to PDF, browse to location, and save) Will a blob store all the
gridviews, etc and can I do it in the code behind when they click the "Completed" button? The requirements of this project show I must be able to create an electronic hard copy that is saved with other supporting documentation. Can't just be data in the
SQL Database.
This is what they are doing now, but I'm trying to save these extra steps where they click File | Print to PDF, browse to location, save. Instead, when they click the "Completed" button, I want to somehow from the codebehind "auto-generate" a pdf/gif/tif/blob/something
that stores electronically on the server.
I would give them a printed version of the page and have them print a hard copy to place into the person's file as it will ensure a 'permanent' backup.
They don't actually want a physical hard copy, just an electronic copy that is saved on a document server. (I know this is crazy, that's why I'm struggling with how best to do this). Just need to see if when they click "completed", I can save everything
on screen to a file.
Going to close out this thread. Didn't figure out how to dynamically generate a .gif, but am researching how to dynamically generate a .html and just save it.
funluckykitt...
Participant
1469 Points
1547 Posts
Is it possible to dynamically take a screen shot of webpage and save to server?
Apr 09, 2012 02:30 PM|LINK
I have a vb.net page that has a bunch of gridviews, labels, images that the HR dept uses regularly to maintain data. Once they are finished with the page they click a "completed button". This click updates the data so they know it has been processed, and I need to figure out a way to keep a "permanent record" of what was all displayed on the screen. (They want to save a copy of what was on the screen electronically)
I've worked with iText before, but I don't think printing to .pdf it's the way to go because of the complexity of the layout and all the gridviews/labels, etc. Is it even possible to take a screen shot of the web page and save it as a .gif/jpg/tif?
adamturner34
Contributor
3964 Points
999 Posts
Re: Is it possible to dynamically take a screen shot of webpage and save to server?
Apr 09, 2012 02:34 PM|LINK
Why not just store html of the page in a blob?
Amin.Mirzapo...
Member
546 Points
98 Posts
Re: Is it possible to dynamically take a screen shot of webpage and save to server?
Apr 09, 2012 02:57 PM|LINK
You can add a print button and tell them to print with Microsoft XPS document writer.
funluckykitt...
Participant
1469 Points
1547 Posts
Re: Is it possible to dynamically take a screen shot of webpage and save to server?
Apr 09, 2012 03:03 PM|LINK
I'm open to ideas, and am not familiar with storing the html of the page as a blob. Can you explain further? (I'm trying to get rid of the process where they manually do a File | Print to PDF, browse to location, and save) Will a blob store all the gridviews, etc and can I do it in the code behind when they click the "Completed" button? The requirements of this project show I must be able to create an electronic hard copy that is saved with other supporting documentation. Can't just be data in the SQL Database.
funluckykitt...
Participant
1469 Points
1547 Posts
Re: Is it possible to dynamically take a screen shot of webpage and save to server?
Apr 09, 2012 03:04 PM|LINK
This is what they are doing now, but I'm trying to save these extra steps where they click File | Print to PDF, browse to location, save. Instead, when they click the "Completed" button, I want to somehow from the codebehind "auto-generate" a pdf/gif/tif/blob/something that stores electronically on the server.
Amin.Mirzapo...
Member
546 Points
98 Posts
Re: Is it possible to dynamically take a screen shot of webpage and save to server?
Apr 09, 2012 03:28 PM|LINK
Well, as you have to transfer the rendered html to server, it would be a bit problematic, but take a look at this two pages:
http://msdn.microsoft.com/en-us/library/aa969772.aspx
http://www.aspose.com/docs/display/wordsnet/How+to++print+a+document+on+a+server+via+the+xpsprint+api
dch3
Member
447 Points
638 Posts
Re: Is it possible to dynamically take a screen shot of webpage and save to server?
Apr 09, 2012 03:31 PM|LINK
I would give them a printed version of the page and have them print a hard copy to place into the person's file as it will ensure a 'permanent' backup.
funluckykitt...
Participant
1469 Points
1547 Posts
Re: Is it possible to dynamically take a screen shot of webpage and save to server?
Apr 09, 2012 03:33 PM|LINK
They don't actually want a physical hard copy, just an electronic copy that is saved on a document server. (I know this is crazy, that's why I'm struggling with how best to do this). Just need to see if when they click "completed", I can save everything on screen to a file.
funluckykitt...
Participant
1469 Points
1547 Posts
Re: Is it possible to dynamically take a screen shot of webpage and save to server?
Apr 09, 2012 08:05 PM|LINK
Going to close out this thread. Didn't figure out how to dynamically generate a .gif, but am researching how to dynamically generate a .html and just save it.