473,397 Members | 2,084 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,397 software developers and data experts.

Printing table in landscape spreading accorss three pages

Hi,

Can any one help in printing a html table content (dynamically generated which spreads accorss multiple pages ) in landscape by default.

The following code does not work when we have a table with lot of rows which spans accross multiple pages. Nothing shows up in print preview
Expand|Select|Wrap|Line Numbers
  1.   <html>
  2.      <head>
  3. <object id="factory" viewastext style="display:none"
  4.    classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
  5.    codebase="http://localhost/smsx.cab#Version=6,5,439,50">
  6.    <param name="template" value="MeadCo://IE7" />
  7. </object>
  8.          <title>Example</title>
  9.          <style type="text/css" media="print">
  10.            div.page
  11.              { 
  12.                  writing-mode: tb-rl;
  13.                  height: 80%;
  14.                  width : 100%;
  15.                  margin: 10% 0%;
  16.              }
  17.  div.page table 
  18.              {
  19.                  margin-right: 80pt;
  20.                  filter: progid:DXImageTransform.Microsoft.BasicImage(Rotation=1);
  21.              }
  22.            </style>
  23.      </head>
  24.      <body>
  25.          <div class="page">
  26.              <table border="1">
  27.                  <tr><td>A1</td><td>A2</td><td>A3</td></tr>
  28.                  <tr><td>B1</td><td>B2</td><td>B3</td></tr>
  29.                  <tr><td>B1</td><td>C2</td><td>c3</td></tr>
  30.                  <tr><td>B1</td><td>D2</td><td>d3</td></tr>
  31.                  <tr><td>B1</td><td>E2</td><td>e3</td></tr>
  32.                  <tr><td>B1</td><td>F2</td><td>F3</td></tr>
  33.                  <tr><td>B1</td><td>G2</td><td>G3</td></tr>
  34.                  <tr><td>B1</td><td>H2</td><td>H3</td></tr>
  35.                  <tr><td>B1</td><td>I2</td><td>I3</td></tr>
  36.                  <tr><td>B1</td><td>J2</td><td>J3</td></tr>
  37.                  <tr><td>B1</td><td>K2</td><td>K3</td></tr>
  38.                  <tr><td>B1</td><td>L2</td><td>L3</td></tr>
  39.                  <tr><td>B1</td><td>M2</td><td>M3</td></tr>
  40.                  <tr><td>B1</td><td>N2</td><td>N3</td></tr>
  41.                  <tr><td>B1</td><td>O2</td><td>O3</td></tr>
  42.                  <tr><td>B1</td><td>P2</td><td>P3</td></tr>
  43.              </table>
  44.          </div>
  45.      </body>
  46.  </html>
Jan 6 '10 #1
1 2885
jhardman
3,406 Expert 2GB
What browser are you using? this might be a purely academic question since last time I checked no browsers really supported the printed document portion of the HTML standard, but that is definitely the key.

Jared
Jan 6 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Jody Gelowitz | last post by:
I am having a problem with printing selected pages. Actually, the problem isn't with printing selected pages as it is more to do with having blank pages print for those pages that have not been...
61
by: Toby Austin | last post by:
I'm trying to replace <table>s with <div>s as much as possible. However, I can't figure out how to do the following… <table> <tr> <td valign="top" width="100%">some data that will...
3
by: MarcJ | last post by:
Hello, I can't seem to get printing to landscape working. Here is some of the code I've tried. '--------------------------------------------------------------------------------- Dim...
5
by: Patrick De Ridder | last post by:
How can I turn what I want to print 90 degrees using the logic below? Please tell me the code with which to make the modification. Many thanks, Patrick. using System.ComponentModel; using...
1
by: James | last post by:
Hello, how can I print horizontal pages in c#? I have used the landscape property, setting it to true, but it still prints it vertically, maybe it's my printer? another way I thought is to rotate...
1
by: mark | last post by:
I can't seem to get the logic for printing multiple pages. I know I have to do a comparison between the bottom margin and the position of the next line to be printed and initiate a has more pages...
3
by: D Witherspoon | last post by:
No matter what I do the default paper size is always either A3 or 11 by 8.5 .. Here is the code. Dim dlg As DialogResult pd.DocumentName = "Weld Image" Dim pkPaperSize As New...
2
by: FireStarter | last post by:
I am apparently unable to print landscape... maybe I'm doing something wrong here. I am adding a printDocument to a form. The form also has a textbox containing the text that I want to print and...
2
by: Brad Pears | last post by:
I have a vb.net 2005 application and am using the print preview screen. This screen has a printer icon on it that the user can use to print the document currently being viewed. It uses the default...
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?
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.