Welcome to WebmasterWorld Guest from 54.162.139.217

Forum Moderators: ocean10000

Message Too Old, No Replies

Database populated document for download and print

In short, how? Any pointers?

     
9:58 am on May 12, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 5, 2002
posts:1510
votes: 0


Hi All,

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.

atob.c

11:53 am on May 12, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Sept 1, 2001
posts:4392
votes: 0


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.

1:05 pm on May 12, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 5, 2002
posts:1510
votes: 0


txbakers,

Thanks for the reply. I really wouldn't mind doing this is css but I'm not sure how.

The user would have to format the margins to make it fit, but it would be simple.

As this is going to go out to a wide audience I don't want the user to do anything other than hit "print".

atob.c

2:37 pm on May 12, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Sept 1, 2001
posts:4392
votes: 0


The user has to bring something to the table.

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.

3:46 pm on May 12, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 5, 2002
posts:1510
votes: 0


Thanks txbakers,

If I make sure that no product goes over three quarters of a normal A4 sheet on a standard printer, do you think this will work?

atob.c

3:57 pm on May 12, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Sept 1, 2001
posts:4392
votes: 0


I guess so, couldn't tell you for sure.....
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members