remove footer line on printed pages

  • Gasolene
  • Beginner
  • Beginner
  • Gasolene
  • Posts: 39

Post 3+ Months Ago

We have a online web application that prints invoices/reports.

on the bottom of all pages there is a web address and the date printed,
is there a way to remove this?

I just use a simple javascript function to print
Code: [ Select ]
<a href="javascript:print();">print this page</a>


thnx[/code]
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

That will definitely be user-agent specific. IE may have something for this in an ActiveX control...

Why not use PDF technology? Check out APToolkit.Object for ASP. PHP has a number of great utilities, it would be better to search Google for them rather than me mention just a few.
  • Gasolene
  • Beginner
  • Beginner
  • Gasolene
  • Posts: 39

Post 3+ Months Ago

thnx,

the problem is that this invoice page is dynamic, users see a sortable editable table. They can also update certain info.

a static pdf would probably not be what I am looking for.

I'v found alot of php print utilities that convert pages for printing, but none of them remove the browser added footer.
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

The reason you won't see any php scripts that will remove the browsers footer, is because the footer is client side, while PHP is server side. There is no way to do this besides disabling it in the print properties.
  • Gasolene
  • Beginner
  • Beginner
  • Gasolene
  • Posts: 39

Post 3+ Months Ago

thnx,

I didn't even know you could disable it in page setup.
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

Well who knows about IE, but you can in Mozilla. Depending how "live" this stuff is you might be able to create the PDF's on the fly with PHP.

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 105 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
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.