Solved

Windows.print()

Posted on 2006-10-27
5
600 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

806 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