Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: RE: Printing Problem. Please help! Try This.


Message #1 by "Gary W. Sherwin" <sherwin@b...> on Tue, 22 May 2001 10:09:05 -0400 (EDT)
Jeff:

My apologies,  I failed to test the script on screen resolutions
below 1250.  As a result, I missed a couple things.  I have repaired
the script and re-posted it as:

http://sherwingws.tripod.com/Helping_People/Print_One_Image_Per_Page_II.htm

I have simplified the .js file.  I would recommend that you utilize the
dynamic sizing, at least for printing, as it greatly simplifies things.

Let me know if it works for you now.

Gary W. Sherwin, Webmaster
The American Violet Society
http://www.americanvioletsociety.org/

-----Original Message-----
From: jeffg22@a... [mailto:jeffg22@a...]
Sent: Wednesday, May 23, 2001 4:29 PM
To: javascript
Subject: [javascript] RE: Printing Problem. Please help! Try This.


Gary -

Does your page really work right on your printer (10 printed pages; 1
image per page)??  It doesn't work on mine.  I'm using IE 5.5 as browser,
HP 990Cxi Deskjet printer, printing in portrait mode.

Here's what happens when I try your (unmodified) page:

Of the 10 images, 8 images actually print.

8 pages print (Page 1 with no images; Page 5 with 2 images):

Page 1 prints with two occurrences of "A large elephant is walking around
eating violets. The violet eating elephant is the color of its food. What
color is the elephant?" ("main text").  The first occurence is about 1/3
of the way down the page, and prints on 4 lines.  The first line is
truncated; "s the" is off the page.  The second line is "elephant?"
(centered).  Line 3 is blank, and line 4 is "A".  The second main text
occurrence is 5 lines at the bottom left of page one.  Page 1 includes no
images of violets.

Page 2 prints one violets image with "Un-eaten Violets #2" at the top
right of the page.  An occurrence of the main text appears on 25 lines at
the bottom left of the page (one word per line).

Page 3 prints one violets image with "Un-eaten Violets #3" at the top of
the page, using the whole page width.  An occurrence of most of the main
text appears on 19 lines at the bottom left of the page (one word per
line; "color is the elephant? A" is off the page).

Page 4 prints one violets image with "Un-eaten Violets #4" at the top of
the page, using the whole page width.  An occurrence of the main text
appears on 5 lines at the bottom left of the page.

Page 5 prints two violets images. The first image appears at the top right
of the page, with "Un-eaten Violets #5".  The second image appears at the
bottom left of the page with "#6".  An occurrence of most of the main text
appears on 4 lines immediately to the right of the second image ("d. What
color is the" is off the page).

Page 6 prints one violets image with "#8 Un-eaten Violets" about 1/4 down
the page on the left side. Two partial occurrences of the main text appear
on the page.  The first occurrence of most of the main text appears on 4
lines immediately to the right of the image ("ood. What color is the" is
off the page).  The second occurrence of most of the main text appears on
1 line about 2/3 down the page ("or is the elephant? A" is off the page).

Page 7 prints one violets image with "Un-eaten Violets #9" at the top
right of the page.  The main text does not print on the page.

Page 8 prints one violets image with "Un-eaten Violets #10" at the top of
the page, using the whole page width.  Most of the main text is printed on
three lines immediately under "Un-eaten Violets #10."  "or is the
elephant?" is off the page.



> Jeff:
>
> This is not a perfect solution, I have not had time to do NN testing,
but it
> works with the various printers and screens that I have tried.  Take a
look
> at:
>
> http://sherwingws.tripod.com/Helping_People/Print_One_Image_Per_Page.htm
>
> If you work out the details for NN.  That should be easy haha.
> No realy.  This is one time that the problem should be easier in NN.
Let me
> know and bounce back the code.  I am sure I could
> use it also on my plant site.
>
> By the way.  you must not put anything in the outer unclassed tables on
the
> page, or the paging will be upset.  This might
> not quite work as is on the Tripod site, due to their banner.
> You would have to include their banner size in the calculations to fix
that.
>
> All page material must be placed within the inner-table that has the
> assigned class.
>
> Good Luck.
>
> Gary W. Sherwin, Webmaster
> The American Violet Society
> http://www.americanvioletsociety.org/
>
>
>




  Return to Index