Be Excellent To Each Other
https://www.beexcellenttoeachother.com/forum/

Web Design Question
https://www.beexcellenttoeachother.com/forum/viewtopic.php?f=3&t=1275
Page 1 of 1

Author:  ElephantBanjoGnome [ Fri Jul 11, 2008 10:44 ]
Post subject:  Web Design Question

I'm currently designing a series of medical reports that are generated out of a database. All well and good. The amount of data displayed depends on the number of visits the patients has made, and so is variable in length.

Currently the reports (generated out of access currently) comprise 3 pages, with specific types of data on each one. For the purposes of the online version, the report is generated as a single page of linear data that then needs to be printed onto 3 pages.

THE QUESTION IS: How the pie can I do page breaks so that 'page 1' data only prints on page 1, and so on?

Author:  Squirt [ Fri Jul 11, 2008 10:46 ]
Post subject:  Re: Web Design Question

I'm not sure if you can, with HTML.

Have you thought about converting it to PDF? You have much more control over how it looks, and can specify page breaks and margins and stuff.

Author:  ElephantBanjoGnome [ Fri Jul 11, 2008 10:48 ]
Post subject:  Re: Web Design Question

That's a good point, is htmldoc still free?

Author:  devilman [ Fri Jul 11, 2008 10:49 ]
Post subject:  Re: Web Design Question

I'd go with pdfs too. I use fpdf.

Author:  Grim... [ Fri Jul 11, 2008 10:50 ]
Post subject:  Re: Web Design Question

Er...
page-break-after

[edit]And a how-to: http://davidwalsh.name/advanced-css-pri ... age-breaks

Author:  markg [ Fri Jul 11, 2008 10:50 ]
Post subject:  Re: Web Design Question

http://www.javascriptkit.com/dhtmltutor ... reak.shtml

I've used this technique at work quite a bit.

Author:  ElephantBanjoGnome [ Fri Jul 11, 2008 10:51 ]
Post subject:  Re: Web Design Question

mmm, very good, this may well do the job. Thanks chaps :)

Also: thanks Grim.

Author:  markg [ Fri Jul 11, 2008 10:53 ]
Post subject:  Re: Web Design Question

Grim... beat me to it.

That's about all the control you can get though, local preferences force the printer to put the web address at the top and page numbers at the bottom which may messy up your printed reports a bit. If people don't want to see those they have to change that themselves.

Author:  CraigGrannell [ Fri Jul 11, 2008 10:58 ]
Post subject:  Re: Web Design Question

ComicalGnomes wrote:
Currently the reports (generated out of access currently) comprise 3 pages, with specific types of data on each one. For the purposes of the online version, the report is generated as a single page of linear data that then needs to be printed onto 3 pages.

Print CSS is largely broken and unsupported, although I've had some luck with page-break, etc. As others have said, PDF is your best bet.

Author:  ElephantBanjoGnome [ Fri Jul 11, 2008 11:01 ]
Post subject:  Re: Web Design Question

Yeah, best solution. It'll make the reports nice and portable and the anti-aliasing looks ever so pretty :luv:

Author:  BikNorton [ Fri Jul 11, 2008 16:41 ]
Post subject:  Re: Web Design Question

Starting with IE6 Microsoft provide a TERRIFYINGLY COMPLICATED method of controlling many, many aspects of print preview/generation from C++, including full-page templating, allowing variable content length page pre-counting (so you can have "page X of Y" bits) and other stuff.

I wouldn't recommend you look at that. At all.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/