Be Excellent To Each Other

And, you know, party on. Dude.

All times are UTC [ DST ]




Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Web Design Question
PostPosted: Fri Jul 11, 2008 10:44 
User avatar
Legendary Boogeyman

Joined: 22nd Dec, 2010
Posts: 8175
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?

_________________
Mr Kissyfur wrote:
Pretty much everyone agrees with Gnomes, really, it's just some are too right on to admit it. :)


Top
 Profile  
 
 Post subject: Re: Web Design Question
PostPosted: Fri Jul 11, 2008 10:46 
User avatar
Heavy Metal Tough Guy

Joined: 31st Mar, 2008
Posts: 6516
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.


Top
 Profile  
 
 Post subject: Re: Web Design Question
PostPosted: Fri Jul 11, 2008 10:48 
User avatar
Legendary Boogeyman

Joined: 22nd Dec, 2010
Posts: 8175
That's a good point, is htmldoc still free?

_________________
Mr Kissyfur wrote:
Pretty much everyone agrees with Gnomes, really, it's just some are too right on to admit it. :)


Top
 Profile  
 
 Post subject: Re: Web Design Question
PostPosted: Fri Jul 11, 2008 10:49 
User avatar
Comfortably Dumb

Joined: 30th Mar, 2008
Posts: 12034
Location: Sunny Stoke
I'd go with pdfs too. I use fpdf.

_________________
Consolemad | Under Logic
Curse, the day is long
Realise you don't belong


Top
 Profile  
 
 Post subject: Re: Web Design Question
PostPosted: Fri Jul 11, 2008 10:50 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69511
Location: Your Mum
Er...
page-break-after

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

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Web Design Question
PostPosted: Fri Jul 11, 2008 10:50 
User avatar

Joined: 30th Mar, 2008
Posts: 16561
http://www.javascriptkit.com/dhtmltutor ... reak.shtml

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


Top
 Profile  
 
 Post subject: Re: Web Design Question
PostPosted: Fri Jul 11, 2008 10:51 
User avatar
Legendary Boogeyman

Joined: 22nd Dec, 2010
Posts: 8175
mmm, very good, this may well do the job. Thanks chaps :)

Also: thanks Grim.

_________________
Mr Kissyfur wrote:
Pretty much everyone agrees with Gnomes, really, it's just some are too right on to admit it. :)


Top
 Profile  
 
 Post subject: Re: Web Design Question
PostPosted: Fri Jul 11, 2008 10:53 
User avatar

Joined: 30th Mar, 2008
Posts: 16561
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.


Top
 Profile  
 
 Post subject: Re: Web Design Question
PostPosted: Fri Jul 11, 2008 10:58 
User avatar
Where are you?

Joined: 30th Mar, 2008
Posts: 1639
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.


Top
 Profile  
 
 Post subject: Re: Web Design Question
PostPosted: Fri Jul 11, 2008 11:01 
User avatar
Legendary Boogeyman

Joined: 22nd Dec, 2010
Posts: 8175
Yeah, best solution. It'll make the reports nice and portable and the anti-aliasing looks ever so pretty :luv:

_________________
Mr Kissyfur wrote:
Pretty much everyone agrees with Gnomes, really, it's just some are too right on to admit it. :)


Top
 Profile  
 
 Post subject: Re: Web Design Question
PostPosted: Fri Jul 11, 2008 16:41 
User avatar
Sitting balls-back folder

Joined: 30th Mar, 2008
Posts: 10079
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 11 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Findus Fop and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search within this thread:
You are using the 'Ted' forum. Bill doesn't really exist any more. Bogus!
Want to help out with the hosting / advertising costs? That's very nice of you.
Are you on a mobile phone? Try http://beex.co.uk/m/
RIP, Owen. RIP, MrC.

Powered by a very Grim... version of phpBB © 2000, 2002, 2005, 2007 phpBB Group.