473,626 Members | 3,245 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Printing table in landscape spreading accorss three pages

1 New Member
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 2895
jhardman
3,406 Recognized Expert Specialist
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
4845
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 selected. For example, if I were to have 5 pages with every second page printing, I would get the following results: Page 1 = Print OK Page 2 = Blank Page 3 = Print OK Page 4 = Blank
61
24459
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 'stretch'</td> <td valign="top" width="300">some data that won't 'stetch'</td> </tr> </table>
3
10595
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 myDocument As PrintDocument = PreparePrintDocument() Dim myPaperSize As PaperSize Dim iSizeCount As Integer Dim dlgPrint As New PrintDialog
5
10111
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 System.Drawing; using System.Drawing.Printing; using System.IO;
1
3496
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 the graphic object (g), but I haven't tried that yet. another thing, the amount of rotation is 270, the sdk says it supports 90 and 270, but that info is read only so I can't put 90 to see what happends thanks in advance
1
4815
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 condition when they are equal. I have included my code for the printpage handler below. When I run it for an array that takes up less than a page its OK. When I run it on a larger array it goes into an infinite loop creating identical pages of the...
3
31878
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 Printing.PaperSize("sdfgsfdg", 850, 1100)
2
8449
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 a button that triggers the printing. All properties of all objects are left intact for simplicity's sake. Code on the form:
2
9962
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 printer settings to print. I wanted the print preview to appear the same for all users (i.e. a default page size of 8.5x14 (legal) and portrait mode). Many users have different printers as their default (plotters etc..) and I found that various...
0
8269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8203
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8711
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8642
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8512
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4094
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2630
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1515
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.