I have an online form that is basically a booking for an event that takes in the normal name, location, email, etc.
Now I want to have a webpage that will display everyone registered and be able to print it out. However, there are 15 fields of info and if I put it into something like a datagrid, I think it would spread too far to be easily printable. I then thought about have a section printed for each person, so the form would add textboxs with the info from the database and then create more textboxs for the next person and so on. However, I am unsure how to dynamically create that boxes and loop thru the database.
I am sure someone else has already done something like this and was wondering:
What is your opinion on the best way to do this?
and Do you have an example?In a typical big application, you would use a PDF generation tool that the client could open and then print on their own accord:
http://www.websupergoo.com/abcpdf-1.htm
In your case it sounds like you should just render html tables with rows and cells by creating a new class that inherits from System.Web.UI.WebControls.WebControl that has something like this in its Render method:
writer.write("<table">
writer.write("<tr>")
writer.write("<td>")
writer.write(firstName)
writer.write("</td>")
...
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment