473,387 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Printing cells in a table

Joe
I have a html table with several cells in it. I want to print 2 adjacent
cells from the table. I wasn't sure too sure how to print it so I created
<style type="text/css" media="print">
..noprint {DISPLAY: none}
</style>

I set the class = "noprint" for the cells I don't want printed.

Both cells have a border which ends up making a square. The right most
border gets stretched and doesn't print.

I can't use code behind for this page but thought maybe there is another way
of doing this or maybe someone knows what the problem is.

Thanks.
Nov 18 '05 #1
2 953
Joe
After looking at the print out again, it seems the cells get stretched in
height and width. Is there any way to have it print the exact size as it
appears on the screen?

The actual width and height is: 473 * 350.

"Joe" <J@fishinbrain.com> wrote in message
news:O1*************@tk2msftngp13.phx.gbl...
I have a html table with several cells in it. I want to print 2 adjacent
cells from the table. I wasn't sure too sure how to print it so I created
<style type="text/css" media="print">
.noprint {DISPLAY: none}
</style>

I set the class = "noprint" for the cells I don't want printed.

Both cells have a border which ends up making a square. The right most
border gets stretched and doesn't print.

I can't use code behind for this page but thought maybe there is another way of doing this or maybe someone knows what the problem is.

Thanks.

Nov 18 '05 #2
Joe
found the problem. It seems that the style height and width both need to be
set for the cells (td) otherwise things get stretched.
"Joe" <J@fishinbrain.com> wrote in message
news:O1*************@tk2msftngp13.phx.gbl...
I have a html table with several cells in it. I want to print 2 adjacent
cells from the table. I wasn't sure too sure how to print it so I created
<style type="text/css" media="print">
.noprint {DISPLAY: none}
</style>

I set the class = "noprint" for the cells I don't want printed.

Both cells have a border which ends up making a square. The right most
border gets stretched and doesn't print.

I can't use code behind for this page but thought maybe there is another way of doing this or maybe someone knows what the problem is.

Thanks.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sugapablo | last post by:
Can anyone help me out with some code to change three table cells (<td>) when one is hovered over? I have a calendar grid where each day is made up of three table cells and I want all three to...
3
by: N. Demos | last post by:
I have a single row table with fixed dimensioned cells nested inside a fixed dimensioned div, which has overflow: hidden. The div's dimensions are such that It should only display the first two...
14
by: lance | last post by:
Hi, I am a JS newbie. Hopefully the answer to my question is not trivial. I have written a simple webpage that presents a table. A JS function allows the viewer to click on a cell and each...
0
by: Michelle Keys | last post by:
I am trying to call a print function to print a string from a database using javascript. Which is RC_DATA of Varchar2(2500). This is a javascript is not being used. I have a thing that needs to...
7
by: Amirallia | last post by:
Hello! I have a wecontrol table in a page, this table has a number of variable rows depending of the choice of the user. But when the table has a large number of rows, the printing of the page...
29
by: FredBear | last post by:
I am just coming to grips with php, Dreamweaver and MySQL and I want to make a facility available for the members of the group I am creating my web site for. I want them to be able to print-out a...
0
by: GiftX | last post by:
VB 6.0 And Spreadsheet - Printing problem Good morning West. After much research, I found this code. It scans the spreadsheet and returns up to the last used cell. ...
3
by: GiftX | last post by:
Good morning members. I am using VB6 to generate a spreadsheet. My module is working okay but one of my objectives is to print an underline after writing each record in the spreadsheet, just to show...
7
by: johnacooke | last post by:
The W3C added THEAD, TFOOT and TBODY elements to facilitate the printing of long tables, so that header and footer information could be repeated on each page. While I have seen this discussed...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.