"Greg Brewer" <GregBrewer.net> schreef in bericht
news:40c3ab6e$0$444$a726171bnews.hal-pc.org...table> I haven't figured where to post this. I'm working in PHP so I thought I
> try here.
> I have four pieces of information I want to display -- each is variable
> number of lines. For viewing, I want it to be a long, narrow display so
> that you only need to scroll down to see everything. So it will be aside.> with 4 rows.
> When printing though, I want it to be shorter so that everything will
> usually fit on one page. For that, I need rows 2 and 3 to be side by<table><tr><td>stuff1</td></tr><tr><td>stuff2</td></tr><tr><td>stuff3</td></>
> The equavalent of what I want is
> I've used media type on CSS to make printed output look different from
> displayed output but for the life of me, I cannot figure out how I can get
> php to render this page so that it will print side by side when printing.
> Anyone have any ideas?
window.print() is called) the page gets printed. All of this is on the
client machine and the current (the 'viewing') HTML will be printed. My
guess is to make an extra step and create a second page with the 'printing'
Add a 'print' button on the viewing HTML and when clicked show the printing
page and let the user print the page through the browser.
add a hidden iframe and set the src attribute to the printing page. When the
user hits your printing button on the viewing HTML call