Re: Saving aspx to file or other solution



Hi ziros,

Sorry, I'll try to explain better.

ziros wrote:
Roland :
about that "You take a screenshot of the empty form"
what do you exactly mean ? and what you meant about the image thing ? would like some more if you can explain.

What I mean is that you have a screenshot of the form as it is displayed on your computer. That screenshot is in a graphics file. Now you can measure the coordinates in the image where you want to place text (using Paint or some other image editor). Then you know for example, "Firstname" starts at 100,100 pixels.

When the user filled out the form, you do some image editing on the server. In fact, you copy the screenshot and write the text the user entered into the "Firstname" textbox in the image at 100,100. (The DrawString method of the Graphics object might be handy here). Same for other textboxes. What you end up with, is an image with all the text the user entered in it.

Then you display that image to the user. He can't change anything any more, it's take it or leave it; confirm or cancel. The image will most likely look different from the form the user filled in (window size, screen resolution, browser etc.); but if the user confirms, he confirms the image exactly as you have stored it, and you can save the image in the database (or wherever).

Hope this helps,

Roland
.