PC Review


Reply
Thread Tools Rate Thread

CSS and reloading page for printing

 
 
Jeff Johnson
Guest
Posts: n/a
 
      10th Feb 2005
I'm developing a web application that needs to support printing on various
pages. I'm using css with media="print" statements to format the page, and
this is working well. The issue I'm having is that the page isn't being
reloaded after it is resized as a part of the internal printing process. Or
in other words, the CSS changes are being applied to the printed version of
the page without the browser reloading the page elements. I need the page
elements (images, etc) to be reloaded so that they can be rendered at the
correct size for the printed page.

I believe that not reloading the page as a part of the print process is
typically desirable -- I wouldn't something to reload and break (like a page
that requires certain form input). But in my case resizing the page without
reloading it won't work as the images I've rendered for the on-screen page
will be cut off or too small.

I've tried using the onbeforeprint and onafterprint client side events to
resize/reload the page, but these changes seem to be ignored as a part of
the CSS print rendering process.

As a workaround to this I can add a link or button on my page that pops up a
page for printing, but it would have to be formatted for a certain size
page. One of the advantages of using the CSS for printing is that with
elements set to percentage sizing my page (which is again a web application)
I can take advantage of any available page size.

Does anyone have any insight into how I can force the print process to
reload a page once it re-renders it for printing? Or some other idea?

Thanks,

Jeff


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE Page keeps reloading John Windows XP Help 2 2nd Nov 2009 01:46 PM
HELP..Page keeps reloading.HELP Please. Tony M Microsoft Frontpage 2 7th Dec 2008 03:14 PM
asp.net page reloading pTsy Microsoft ASP .NET 2 7th Oct 2004 03:07 PM
page reloading patrick Windows XP Internet Explorer 1 2nd Sep 2004 08:15 PM
getting records without reloading the page Richard Microsoft ASP .NET 3 22nd Jul 2004 07:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:04 AM.