HighDots Forums  

Missing Content When Printing

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Missing Content When Printing in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Huge B.
 
Posts: n/a

Default Missing Content When Printing - 09-21-2009 , 02:08 PM






Hi All,

Has anyone run across the problem of incomplete print jobs when using
the print() Javascript method? I've got a page that I want the user
to be able to print. The print link points to window.print(). But,
when the job is done, only a portion of the page is printed. Even the
print preview is incomplete. But, on screen, the complete page is
intact. I checked the style sheet and there aren't any "display:
none" attributes on any of the classes or id's. I even tried using
"print" as the media. Any ideas as to why this is happening?

Browser: FireFox and IE
Frames: None

Reply With Quote
  #2  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Missing Content When Printing - 09-21-2009 , 03:43 PM






Huge B. wrote:

Quote:
Has anyone run across the problem of incomplete print jobs when using
the print() Javascript method?
I guess so. But why do you ask this in
comp.infosystems.www.authoring.stylesheets?

Quote:
I've got a page that I want the user
to be able to print.
Have you ever seen a browser that does not contain a button or a command for
printing the current page?

Quote:
The print link points to window.print().
Then it's a fake link and looks particularly ridiculous in a printed copy
and behaves ridiculously when scripting is disabled in the browser.

Quote:
But,
when the job is done, only a portion of the page is printed. Even the
print preview is incomplete. But, on screen, the complete page is
intact. I checked the style sheet and there aren't any "display:
none" attributes on any of the classes or id's. I even tried using
"print" as the media. Any ideas as to why this is happening?
There's no particular reason to assume that style sheets have anything to do
with this, and there's no way we could check that because you didn't provide
a URL.

But I'm sure you already tried testing what happens when style sheets are
disabled (which is very easy to test on Firefox). Well, what did you see?

--
Yucca, http://www.cs.tut.fi/~jkorpela/

Reply With Quote
  #3  
Old   
C A Upsdell
 
Posts: n/a

Default Re: Missing Content When Printing - 09-21-2009 , 04:09 PM



Huge B. wrote:
Quote:
Hi All,

Has anyone run across the problem of incomplete print jobs when using
the print() Javascript method? I've got a page that I want the user
to be able to print. The print link points to window.print(). But,
when the job is done, only a portion of the page is printed. Even the
print preview is incomplete. But, on screen, the complete page is
intact. I checked the style sheet and there aren't any "display:
none" attributes on any of the classes or id's. I even tried using
"print" as the media. Any ideas as to why this is happening?

Browser: FireFox and IE
Frames: None
Validate your page(s)? Browsers can do strange things when the code is
broken.

Reply With Quote
  #4  
Old   
David Stone
 
Posts: n/a

Default Re: Missing Content When Printing - 09-22-2009 , 08:45 AM



In article <1IQtm.19039$La7.15501 (AT) uutiset (DOT) elisa.fi>,
"Jukka K. Korpela" <jkorpela (AT) cs (DOT) tut.fi> wrote:
Quote:
Huge B. wrote:

Has anyone run across the problem of incomplete print jobs when using
the print() Javascript method?

I guess so. But why do you ask this in
comp.infosystems.www.authoring.stylesheets?

I've got a page that I want the user
to be able to print.

Have you ever seen a browser that does not contain a button or a command for
printing the current page?
I have experienced problems with incomplete printing using the
application print menu item/shortcut. The cause was a line like
this in a style sheet created by someone else:

overflow: -moz-scrollbars-vertical;

The temporary fix was an @media print rule setting

overflow: visible;

Quote:
The print link points to window.print().

Then it's a fake link and looks particularly ridiculous in a printed copy
and behaves ridiculously when scripting is disabled in the browser.
I wouldn't necessarily put it in the same terms, but I agree that
having a "print" link is redundant. If the OP is concerned about
suppressing certain items in the print version, an @media print
block added to the style sheet is a very convenient way to handle
this.

Quote:
But I'm sure you already tried testing what happens when style sheets are
disabled (which is very easy to test on Firefox). Well, what did you see?

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.