Solved

Windows.print()

Posted on 2006-10-27
5
603 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

732 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