473,387 Members | 1,582 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 Problems

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
Jul 19 '05 #1
2 2738
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

"Jawahar Rajan" <jr****@nc.rr.com> wrote in message
news:17****************************@phx.gbl...
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

Jul 19 '05 #2
Gazing into my crystal ball I observed "Jawahar Rajan" <jr****@nc.rr.com>
writing in news:17****************************@phx.gbl:
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

--
Adrienne Boswell
Please respond to the group so others can share
http://www.arbpen.com
Jul 19 '05 #3

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

Similar topics

0
by: Programatix | last post by:
Hi, I am working on the PrintDocument, PrintDialog, PageSetupDialog and PrintPreviewControl components of Visual Studio .NET 2003. My developement machine is running Windows XP. There are...
0
by: Programatix | last post by:
Hi, I am working on the PrintDocument, PrintDialog, PageSetupDialog and PrintPreviewControl components of Visual Studio .NET 2003. My developement machine is running Windows XP. There are...
5
by: Mark Preston | last post by:
Admission first - I don't actually have a problem here but have noticed that a lot of people have been asking similar questions and getting very varied answers. What I've done is to sort of...
3
by: Grim Reaper | last post by:
I print mailing labels out of Access 2000 databases about 3 to 4 times a week. I have been having problems with one thing since I have been printing mailing labels. I print mailing labels by...
1
by: G.Esmeijer | last post by:
Friends, I'm (a bit) dissapointed about the printing possibilities in c#. It could also be lack of knowedge. I would like to align a text on the right side of the paper when printing. For...
4
by: Arif | last post by:
I C# code prints very slow as compared to a third party barcode printing software. That software prints approximately 10 labels in 2 seconds while my C# code prints 10 labels in 5 to 6 seconds. And...
4
by: Tracey | last post by:
Hey folks, I have an ASP.NET web app that's working just fine, but a small percentage have two printing problems that don't happen to the vast majority of users. These problems are listed below...
1
by: Dreamtime | last post by:
Hi I am using Visual Studio 2005 and the bundled Crystal Reports (previously I used .net 2003 and bundled Crystal Reports for 2 years - same issues!) I have a report which is displayed in the...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
18
by: Brett | last post by:
I have an ASP.NET page that displays work orders in a GridView. In that GridView is a checkbox column. When the user clicks a "Print" button, I create a report, using the .NET Framework printing...
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: 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
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...
0
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,...
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
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...

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.