Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: ocean10000
Second question of the day. Sorry!
As some of you may know, I have just taken on some really big projects and am trying to add some frills to really impress. I have developed a course booking system (in ASP on a Win2000 server) for my employer so that all courses are now instantly updated on the site and the bookings now don't need to managed as there is no administration. However, 3 times are year my employer sends out a hard copy of the course booklet. At the minute this is a very manual process that involves copying and pasting into word. I wish to somehow automate the process.
The Process I Am Thinking Of
1. The user goes to the site and clicks "Print Booklet"
2. A word, pdf or html (or another alternative) document is then created on-the-fly with information from the database. Each course is on a different page (very difficult to the alignment right with HTML as there is no pagebreak functionality) and uses the same template.
3. The document then opens and the user can print as many copies as they need.
I am really stuck here. I am sure it is possible but am stuggling to find a solution even with the mass amount of software avaliable. If anyone can point in the right direction I will be really greatful.
HTML as there is no pagebreak functionality
First, you can use CSS to force page breaks in HTML. I do it with mailing labels printed from the browser and it works fine.
You can do what you want to do with plain HTML, you don't need to use Word,PDF, etc.
The user would have to format the margins to make it fit, but it would be simple.
On my labels the users are required to clear headers and footers and set the margins to 0. Plus, they have to adjust their own page break margins, since every printer has a different bottom margin. If they don't do this, their labels don't come out right.
The css for this is: style:page-break-always
put that at a certain point (count rows perhaps) and you'll get page breaks when they print.