Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Windows.print()

Posted on 2006-10-27
5
Medium Priority
?
607 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

885 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