• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

howto create a print function ?

 
Nakata kokuyo
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
good day to all,

i would like to have a function where i click on a button and it will printout the page that currently display and it fit to A4 size, the questions is howto i make the whole page fit to A4 size? also would it be good if i generate a pdf file first then only print ? pdf file allow to capture picture as well ?

can someone suggest some ideas for my scenario ? any sample i can reference on this ?

thank you very much for guidance
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd suggest using a CSS print stylesheet. Just Google "css print" and you'll get a lot of links explaining how this works.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic