Topic: Table width and printing Pages that link to <a href="https://ozoneasylum.com/backlink?for=21327" title="Pages that link to Topic: Table width and printing" rel="nofollow" >Topic: Table width and printing\

 
Author Thread
The Jackal
Paranoid (IV) Inmate

From: The Dark Side of the Moon
Insane since: Jun 2000

IP logged posted posted 04-13-2004 19:24 Edit Quote

OK. Every time I print a page the right hand side is cut short. Is this a printer setting problem or a table problem with the page layout?

(Edited by The Jackal on 04-13-2004 10:24)

Rinswind 2th
Maniac (V) Inmate

From: Den Haag: The Royal Residence
Insane since: Jul 2000

IP logged posted posted 04-14-2004 22:05 Edit Quote

><><>< WARNING: Information insufficiency, can not proceed with answer. WARNING: Information insufficiency><><><><

Really some more information could lead to an usefull answer.
Like what (kind off) page are you trying to print, with which program on which printer.
If try to print an html page a link to the page or the code might help.
If it's another type of file go look at the organization who is in charge off that type off file (Microsoft for word, publisher,excel an other files. Adobe for pdf, eps, psd, ai etc. Openoffice.org for files related to oppenofiice and so on.
Also what is the papersize in you printer and what papersize is the printerdriver set to?
What is in your printer manual about the subject?
What did you try to solve this problem?

How to start a thread
How to ask questions...

------------------------------
Do something usefull: support Justice for Pat Richard

(Edited by Rinswind 2th on 04-14-2004 13:11)

Rinswind 2th
Maniac (V) Inmate

From: Den Haag: The Royal Residence
Insane since: Jul 2000

IP logged posted posted 04-14-2004 22:08 Edit Quote

><><>< WARNING: Information insufficiency, can not proceed with answer. WARNING: Information insufficiency><><><><

Really some more information could lead to an usefull answer.
Like what (kind off) page are you trying to print, with which program on which printer.
If try to print an html page a link to the page or the code might help.
If it's another type of file go look at the organization who is in charge off that type off file (Microsoft for word, publisher,excel an other files. Adobe for pdf, eps, psd, ai etc. Openoffice.org for files related to oppenofiice and so on.
Also what is the papersize in you printer and what papersize is the printerdriver set to?
What is in your printer manual about the subject?
What did you try to solve this problem?

Read this:
How to start a thread
How to ask questions...

------------------------------
Do something usefull: support Justice for Pat Richard

The Jackal
Paranoid (IV) Inmate

From: The Dark Side of the Moon
Insane since: Jun 2000

IP logged posted posted 04-23-2004 22:05 Edit Quote

I am trying to print a PHP page using the Guru's PHP template code. The printer issue is moot since the problem happens on every printer I print on (which are different models, brand names, paper, etc.) The HTML for the entire page is as follows:

code:
<HTML>
<HEAD>
<TITLE>Untitled Document</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</HEAD>

<body bgColor=#CCCCCC onLoad="getPic()">
<table width="750" border="0" align="center" cellpadding="2" bgcolor="#000099">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<tr>
<td ALIGN="LEFT" VALIGN="TOP">
<TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD WIDTH="160" HEIGHT="609" BGCOLOR="#6699CC" VALIGN="TOP" ROWSPAN="2">
<TABLE WIDTH="160" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD ALIGN="CENTER" VALIGN="TOP">
<SCRIPT LANGUAGE="JavaScript">
<!-- hide me

/*********************************************************************
THIS CODE IS FOR TODAYS DATE
*********************************************************************/
// array for the months of the year
var months = new Array("January","Febuary","March","April","May","June","July","August","September","October","November","December");

// array for the days of the week
var days = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");

// the Date object
var todaysDate = new Date();

// variable for the date
var theDate = todaysDate.getDate();

// variable for the year
var theYear = todaysDate.getFullYear();

// variable for the month
var theMonth = months[todaysDate.getMonth()];

// variable for the day of the week
var theDay = days[todaysDate.getDay()];

// the date suffix variable
var dateSuffix;

// the IF statement that adds the suffix to the date
if (theDate==1 || theDate==21 || theDate==31)
{
dateSuffix="st";
}
else if (theDate==2 || theDate==22)
{
dateSuffix="nd";
}
else if (theDate==3 || theDate==23)
{
dateSuffix="rd";
}
else
{
dateSuffix="th";
}

// This is what writes the date
document.write("<B>" + theDay + ",<BR>" + theMonth + " " + theDate + "<sup>" + dateSuffix + "</sup>, " + theYear + "</B>");

// show me -->

</SCRIPT>
<BR>
&nbsp; </TD>
</TR>
<TR>
<TD BGCOLOR="#000099" HEIGHT="1"></TD>
</TR>
<TR>
<TD ALIGN="CENTER" VALIGN="BOTTOM">
<FORM METHOD=get ACTION="/cgi-bin/webglimpse/home/sasimi/concernedchristians-www">
&nbsp;<BR><I><FONT COLOR="#FFFFFF"><B>Search the Site for:</B></FONT></I>
<INPUT NAME=query SIZE=15>
<INPUT TYPE=image ALT=submit SRC="images/go.gif" NAME="submit">
<!-- Admins - remove this line to stop caching next hits -->
<INPUT NAME="cache" VALUE="yes" TYPE="HIDDEN"><BR>
<DIV ALIGN=RIGHT ID=menu><FONT COLOR="#FFFFFF" SIZE="1"><A HREF="wgindex.html">Detailed
Search</A></FONT></DIV>
<BR>
</FORM>
</TD>
</TR>
</TABLE>

<DIV ID="menu">
<script language="JAVASCRIPT">
<!-- hide me
// This writes the Main Menu
writeMenu();
// show me -->
</script>
<P>&nbsp;</P>
<P>&nbsp;</P>
</DIV>
</TD>
<TD HEIGHT="90" ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#000099" WIDTH="1">&nbsp;</TD>
<TD HEIGHT="90" ALIGN="CENTER" VALIGN="TOP"><IMG SRC="images/blank.gif" WIDTH="399" HEIGHT="78" NAME="myPicture"></TD>
<TD HEIGHT="90" ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#000099" WIDTH="1">&nbsp;
</TD>
<TD WIDTH="160" HEIGHT="609" BGCOLOR="#6699CC" ROWSPAN="2" ALIGN="LEFT" VALIGN="TOP">
<TABLE WIDTH="160" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#000099"> <B><FONT COLOR="#FFFFFF">VERSE
OF THE DAY</FONT></B></TD>
</TR>
<TR>
<TD ALIGN="CENTER" VALIGN="TOP"> &nbsp;<BR>
<FONT SIZE="3" COLOR="FFFFFF"> <I> </I></FONT>

<TABLE WIDTH="95%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD><DIV ID="link"><FONT SIZE="3" COLOR="FFFFFF"><I>
<SCRIPT SRC="http://www.verseoftheday.com/kjvverse.js" LANGUAGE="JAVASCRIPT"></SCRIPT>
</I></FONT></DIV></TD>
</TR>
</TABLE><br>&nbsp;

</TD>
</TR>
<TR>
<TD HEIGHT="1" BGCOLOR="#000099"></TD>
</TR>
<TR>
<TD ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#000099"><B><FONT COLOR="#FFFFFF">RESOURCE
MATERIALS</FONT></B></TD>
</TR>
<TR>
<TD ALIGN="CENTER" VALIGN="TOP"> &nbsp;<BR>
<FONT COLOR="#FFFFFF"> </FONT>
<TABLE WIDTH="97%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD HEIGHT="20"><DIV ID ="link">
<SCRIPT LANGUAGE="JavaScript">
<!-- hide me

// THIS WRITES A RANDOM RESOURCE
document.write(myResource[randomResource]);

// show me -->
</SCRIPT>
</DIV></TD>
</TR>
</TABLE>
<BR>
&nbsp;</TD>
</TR>
<TR>
<TD HEIGHT="1" BGCOLOR="#000099"></TD>
</TR>
<TR>
<TD VALIGN="TOP" ALIGN="CENTER" BGCOLOR="#000099"><B><FONT COLOR="#FFFFFF"><B>LEARN
MORE.... </B></FONT></B></TD>
</TR>
<TR>
<TD ALIGN="CENTER" VALIGN="TOP">
<DIV ID="link">&nbsp;<BR>
<TABLE WIDTH="97%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD>
<DIV ID="link"><SCRIPT LANGUAGE="JavaScript">
<!-- hide me

// This is what writes the article
document.write(myArticle[randomArticle]);

// show me -->

</SCRIPT></DIV>
</TD>
</TR>
</TABLE>
<BR>
&nbsp;</DIV>
</TD>
</TR>
</TABLE>
<P>&nbsp;</P>
<P>&nbsp;</P>
</TD>
</TR>
<TR>
<TD HEIGHT="519" ALIGN="LEFT" VALIGN="TOP" BGCOLOR="#000099" WIDTH="1"></TD>
<TD HEIGHT="519" ALIGN="LEFT" VALIGN="TOP">
<DIV ID="content"><!-- Begin Content -->

<P>&nbsp;</P><TABLE WIDTH="98%" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER">
<TR ALIGN="left" VALIGN="top">
<TD>

main content stuff here
</TD>
</TR>
</TABLE>
<P>&nbsp;</P>

<!-- End Content -->
<P>&nbsp;</P>
<P>&nbsp;</P>
<TABLE WIDTH="90%" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER">
<TR>
<TD>
footer stuff here
</TD>
</TR>
</TABLE>
<P>&nbsp;</P>
</DIV>
<TD HEIGHT="90" ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#000099" WIDTH="1">
</TD>
</TR>
</TABLE>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

The Jackal
Paranoid (IV) Inmate

From: The Dark Side of the Moon
Insane since: Jun 2000

IP logged posted posted 04-23-2004 23:44 Edit Quote

OK, after further review, it appears that the problem only occurs when I print from IE. In NS it prints fine.

Rinswind 2th
Maniac (V) Inmate

From: Den Haag: The Royal Residence
Insane since: Jul 2000

IP logged posted posted 04-25-2004 15:04 Edit Quote

Well it seems to be an browser prblem. The page is to big for printing. Thus it will be cut off by default.
Moz however is set by default to shrink-to-fit/scale to paper size. It makes the page fit to the paper....
I guess it's the same for Netscape.

------------------------------
Do something usefull: support Justice for Pat Richard

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

IP logged posted posted 04-25-2004 15:15 Edit Quote

I usually just set the printer to 'landscape' format when I need to print pages like that or copy it into Word and remove the unnecessary columns...

The Jackal
Paranoid (IV) Inmate

From: The Dark Side of the Moon
Insane since: Jun 2000

IP logged posted posted 04-27-2004 23:45 Edit Quote

How can it be to big? The table width is only 750px. This is well under the 800x600 res for the monitor. HMMMMMM....

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

IP logged posted posted 04-28-2004 00:03 Edit Quote

Just a quick thought. The usual resolution of the monitors is/was 72dpi, so with no other settings printing a 750px table could become 750 / 72 = 10,42 in ( ~ 26.46 cm ).

Have you tried to print a table with a width of 100% instead of a width fixed in pixels ? BTW, that problem emphasize the importance of using a stylesheet per medium e.g. screen, print, ...

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

IP logged posted posted 05-07-2004 04:22 Edit Quote

On other hand you could use the size attribute of the @page selector in your CSS to force the pages to be printed in landscape or portrait. Though honestly I'm almost sure the leader browser have never heard of that attribute.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu