homepage Welcome to WebmasterWorld Guest from 54.198.42.213
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

    
Database populated document for download and print
In short, how? Any pointers?
chris_f




msg:955034
 9:58 am on May 12, 2004 (gmt 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

 

txbakers




msg:955035
 11:53 am on May 12, 2004 (gmt 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.

chris_f




msg:955036
 1:05 pm on May 12, 2004 (gmt 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

txbakers




msg:955037
 2:37 pm on May 12, 2004 (gmt 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.

chris_f




msg:955038
 3:46 pm on May 12, 2004 (gmt 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

txbakers




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved