Solved

Windows.print()

Posted on 2006-10-27
5
602 Views
Last Modified: 2008-02-01
Hi,
Im using windows.print() to print my page actually its a pop up page ...but in the printer the page is not priting full i can see half of the page being printed....can any one helpp;...actually its a pop up page   with grid in it ...i can print only half columsn of the grid rest of being is cut ...how do i fix it

this i how i call the pop up page and then use window.print

string PopUpScript = "<script language='javascript'>" +
string.Format ("window.open('Report.aspx?Year={0}&Quarter={1}&REPORT_TYPE={2}',null,'height=400,width=900,scrollbars=yes' );</script>", ddlYear.SelectedItem.ToString(),ddlQuarter.SelectedItem.Text,Request.Params["REPORT_TYPE"]);
Page.RegisterStartupScript("clientuserscript",PopUpScript);
0
Comment
Question by:aspnetdev
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
Thargol earned 500 total points
ID: 17826739
Change your layout in your report to 100% width and not a pixel. Your popup window is 900px wide. If your reporty is also forced to 900px wide it won't fit on the page, because most browsers use 75 dpi for printing. 900/75 = 12 inch or 27cm. Most pages are only 8 inch or 20cm wide.

So either restrict your report to 600pixels (8 inches) wide or make your give your page a width of 100% and make sure all content can wordwrap.

You can also upgrade your users browsers to IE7 or firefox. Those browsers shrink webpages to fit  the page. But this can lead to very small characters.


0
 
LVL 2

Expert Comment

by:Thargol
ID: 18027062
Hi, TheLearnedOne

I think I earned some points with my answer, because it's mentions two possible solutions to the problem.

Regards,
Richard
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question