IE Print issue

This is a discussion on "IE Print issue" within the Web Page Design section. This forum, and the thread "IE Print issue are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 27th, 2006, 13:58
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,742
Blog Entries: 1
Thanks: 0
Thanked 17 Times in 17 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
IE Print issue

I have bingo cards being generated based on the number of employees in a database. This all works, the problem lies in the printing. The float I think is causing IE to not see the rest of the pages. No work around as of yet.

For the print style sheet I have

Code: Select all
table {
   float:left;
   margin:34px;
}
The problem is IE only outputs the first page, if I remove the table style from the print style sheet it previews all the tabels but of course does not line them up. Any ideas? Screen shot of HTML layout and print preview below:
Attached Images
File Type: jpg bingo.jpg (127.0 KB, 58 views)
File Type: jpg print.JPG (75.5 KB, 40 views)
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; Sep 27th, 2006 at 14:06.
Reply With Quote

  #2 (permalink)  
Old Sep 27th, 2006, 23:10
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: IE Print issue

Are you placing 'clear' divs around or at least after the last card?
Reply With Quote
  #3 (permalink)  
Old Sep 28th, 2006, 00:27
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,742
Blog Entries: 1
Thanks: 0
Thanked 17 Times in 17 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: IE Print issue

Well that is the problem. It generates based on the entries in a MSSQL table. 268 as of current. So I need to know how to check the loop or something and place a page break after every 6th table. I figured the float in the print css is choking it.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #4 (permalink)  
Old Sep 28th, 2006, 00:55
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: IE Print issue

Are you doing this with PHP?
Reply With Quote
  #5 (permalink)  
Old Sep 28th, 2006, 12:29
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,742
Blog Entries: 1
Thanks: 0
Thanked 17 Times in 17 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: IE Print issue

Unfortunately no. I wish I could use PHP/MySQL but I am stuck doing it with a MSSQL DB, and a mix of HTML, Javascript and VBScript. The output is handled with javascript. Like I said if I remove the table {} fromt he print style sheet it outputs everything but I need the tables to line up 6 per page thus IE I guess is getting confused and stopping after page one. I did a bunch of research and IE has plenty of known print issues like this anyway. So I need to find a way to force the page breaks.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #6 (permalink)  
Old Sep 28th, 2006, 13:45
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,619
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
Re: IE Print issue

I have to do the same on some reports I print from my website.
<%
Dim i : i = 0
Do While (condition)
i = i + 1
If (i mod 6)=0 Then
' add page break
End If

' do the loop thing
' iterate and all that...

Loop
%>

The othe option is to use height:20% or whatever...
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Reply With Quote
  #7 (permalink)  
Old Sep 28th, 2006, 14:49
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,742
Blog Entries: 1
Thanks: 0
Thanked 17 Times in 17 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: IE Print issue

Awesome, I need to search for a js method though but this puts me on the right track.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #8 (permalink)  
Old Sep 28th, 2006, 14:53
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,619
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
Re: IE Print issue

Code: Select all
<%
var i = 0
while(condition){
 i++;
 if((i%6)==0){
  // add page break
 }
 
  // do the loop thing
  // iterate and all that...
}
%>
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Reply With Quote
  #9 (permalink)  
Old Sep 28th, 2006, 14:55
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,619
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
Re: IE Print issue

I would post do the PHP version too but I don't wanna show off...
(and I'm not sure how to do it, lol)
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Reply With Quote
  #10 (permalink)  
Old Sep 28th, 2006, 15:02
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,742
Blog Entries: 1
Thanks: 0
Thanked 17 Times in 17 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: IE Print issue

haha no PHP here, this runs locally on our network etc.. I am stuck with the MS stuff.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #11 (permalink)  
Old Sep 28th, 2006, 15:59
Up'n'Coming Member
Join Date: Jun 2006
Location: Florida
Age: 29
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Re: IE Print issue

Not that anyone asked, but I think this would work for php, with row class defined as clear: both and cell class defined as float: left
PHP: Select all

<?php
echo "<div class=\"row\">\n";

for(
$i 1$i 10$i++) {

echo 
"<div class=\"cell\"><img src=\"bingo.jpg\" /></div>\n";

if (((
$i 3) == 0) && (($i 9) != 0)) {echo "</div>\n<div class=\"row\">\n";}
elseif ((
$i 9) == 0) {echo "</div>";}
}
// end loop
?>
Reply With Quote
  #12 (permalink)  
Old Sep 29th, 2006, 09:16
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: IE Print issue

There's an easier way to do it in PHP, but it doesn't really matter. That JavaScript should do it though.
Reply With Quote
Reply

Tags
print, issue

Thread Tools

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 On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Print Without Prompt chrisgeast JavaScript Forum 2 Sep 7th, 2007 10:34
print from my website dber Web Page Design 7 Jun 24th, 2006 22:54
css - print and screen? cyberpac9 Web Page Design 0 Jan 3rd, 2006 20:45
Print ClaireB JavaScript Forum 2 Sep 9th, 2005 18:52
Echo vs Print Sqrlgrl PHP Forum 3 May 30th, 2005 22:31


All times are GMT. The time now is 08:43.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43