Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing wide pages

Status
Not open for further replies.

Glasgow

IS-IT--Management
Jul 30, 2001
1,669
GB
I have generated some HTML from Visual Basic that generates a diagram that is (extremely) wide. I cannot scale or shrink it without making it illegible. It works fine on-screen - I can scroll sideways and view the whole page but when I print, it just outputs the leftmost area which is a small fraction of the total page.

Is there any way to get the print capability from IE6 to print multiple pages when the page is too wide in the same way that it does if it is too long?

Thanks in advance.
 
Glasgow, look into using a print style sheet to rearrange your page layout when it is printed. This will not affect the way it displays on screen.


-kaht

Looking for a puppy?

silky-icon-left.gif
[small]Silky Terriers are small, relatively odorless dogs that shed no fur and make great indoor pets.[/small]
silky-icon-right.gif
 
Thanks - I have taken a look and confess I have not made much progress. I see how it could work in more straightforward cases perhaps but...

The problem is that I effectively want to create a 'virtual vertical line' that disects any elements in its path and that line would then define the page break. Anything to the left would print on page 1 and anything to the right would print on page 2 etc (there could be dozens of pages!).

Is this possible?

If it helps, think of my diagram as a family tree with a small number of generations but large numbers in each generation.
 
Is your diagram an image when it gets to the web?

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Greg - no it's not an image. It's 99.9% <div> elements which render as boxes, horizontal lines or vertical lines. All are connected as you would expect in a family tree.
 
Can you serve your pages as PDFs? If you use ASP you can use change the content-type so that the page renders as a PDF, or I think you can change the MIME type directly in HTML, but I've never done that before.

You could try making a "printer friendly" version of your page that is served in PDF and it would give you much more control over the print options.

-kaht

Looking for a puppy?

silky-icon-left.gif
[small]Silky Terriers are small, relatively odorless dogs that shed no fur and make great indoor pets.[/small]
silky-icon-right.gif
 
Thanks again kaht - a PDF is not out of the question I guess. I am generating the html from VB so I guess I could somehow pipe it into a pdf.

I had already tried printing the HTML page to a PDF printer driver but ended up with same symptoms.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top