Print formatted report

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
valen53
Forum Contributor
Posts: 137
Joined: Tue Aug 27, 2002 9:29 am

Print formatted report

Post by valen53 »

Hi
i want to print formatted report like invoice, government report, bank formatted form. But if use browser to print, it quite hard to put the data to the place i wanted.

any solution for that beside use pdf ?

thank you
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

create an alternative print page, changing your CSS settings would give pixel-perfect layouts.

If you actually fancy recoding a bit of the site, moving it iover to solely CSS makes something like this a breeze
Syranide
Forum Contributor
Posts: 281
Joined: Fri May 20, 2005 3:16 pm
Location: Sweden

Post by Syranide »

(btw remember using printfriendly attributes and modes when working with it, otherwise it could easily end up wrong size and so on)
Post Reply