Printing Problems

J

Jawahar Rajan

All,
I am using a simple printer friendly page the opens up as
a new window.
I use a DIV TAG called "printReady" in the section I want
to print (Printer friendly) then in a javascript function
I do this

var printFriendly = document.getElementById("printReady")

var strHTML = printFriendly.innerHTML

I then open a new window with the Javascript and write the
HTML (mostly Text) to the new window.

var printWin = window.open("","printSpecial");
printWin.document.open();
printWin.document.write(html);
printWin.document.close();


This works fine, but if the page is to wide using
Landscape is fine, but in portrait mode it only prints one
page the cut off part is not printed on the second page.
Some times the page will print but the text is missing.
Only the table outlines print.

Any one experience this before or have any suggestions if
this can be overcome.

Thanks
Jawahar
 
R

Ray at

Hi Jawahar,

I suggest posting to a browser group, client side scripting group, or
something along those lines. This group is about ASP, which is a
server-side programming technology, and has no control over print layouts.

Ray at work
 
A

Adrienne

All,
I am using a simple printer friendly page the opens up as
a new window.
I use a DIV TAG called "printReady" in the section I want
to print (Printer friendly) then in a javascript function
I do this

var printFriendly = document.getElementById("printReady")

var strHTML = printFriendly.innerHTML

I then open a new window with the Javascript and write the
HTML (mostly Text) to the new window.

var printWin = window.open("","printSpecial");
printWin.document.open();
printWin.document.write(html);
printWin.document.close();


This works fine, but if the page is to wide using
Landscape is fine, but in portrait mode it only prints one
page the cut off part is not printed on the second page.
Some times the page will print but the text is missing.
Only the table outlines print.

Any one experience this before or have any suggestions if
this can be overcome.

Thanks
Jawahar

http://www.w3.org/TR/REC-CSS2/page.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top