Yii Framework Forum: any way to hide url when printing in browser? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

any way to hide url when printing in browser? Rate Topic: -----

#1 User is offline   frocco 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 232
  • Joined: 17-February 10

Posted 25 February 2010 - 10:06 AM

Hello,

I need to allow customers to print an html (php) page without printing the website url address.
Can this be done in code?
They are not savvy enough to setup their browser.

Thanks

Frank
Regards,

Frank
0

#2 User is offline   wyldie 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 29
  • Joined: 22-May 09

Posted 25 February 2010 - 10:21 AM

nope. not unless you're displaying a PDF in the browser
0

#3 User is offline   wyldie 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 29
  • Joined: 22-May 09

Posted 25 February 2010 - 10:23 AM

although.. saying that.. you can edit the header/footer in the page setup of the browser.
0

#4 User is offline   outrage 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 313
  • Joined: 10-November 09
  • Location:Blackpool, United Kingdom

Posted 25 February 2010 - 10:45 AM

I've had the same problem in the past.
To avoid your clients having to mess around with print settings, the only real option is to create a PDF as already mentioned.
0

#5 User is offline   frocco 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 232
  • Joined: 17-February 10

Posted 25 February 2010 - 01:16 PM

Thanks, I thought PDF was the only way.

What's a good free pdf generator?

I only know of fpdf.

Thanks again.
Regards,

Frank
0

#6 User is offline   wyldie 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 29
  • Joined: 22-May 09

Posted 25 February 2010 - 02:03 PM

try Zend_PDF .. part of the Zend Framework.
0

#7 User is offline   gallego123 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 535
  • Joined: 11-August 09
  • Location:Argentina

Posted 25 February 2010 - 02:43 PM

look this, work for me http://www.yiiframew...xtension/tcpdf/
KISS - Keep It Simple Stupid
ASAP-As Soon As Possible
http://www.yiiframew...oc/cookbook/71/
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users