Wrox Programmer Forums
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 29th, 2010, 09:56 AM
Authorized User
Join Date: May 2007
Posts: 95
Thanks: 5
Thanked 0 Times in 0 Posts
Default Printing issues in asp.net

Hello everybody!

i have an aspx page(contains gridview) and i need to print it. I did this by using javascript - window.print. This works but the problem is that the print out is not coming properly in all the printers. In some printer it works excellently(comes out in a single page) and in some two pages or so. Is anything else can be done using C# to attain uniformity in printing.

-- Abhishek
Old August 22nd, 2010, 02:02 PM
Authorized User
Join Date: Aug 2010
Posts: 12
Thanks: 0
Thanked 2 Times in 2 Posts
Default better Printing option

why u r not using Cristal report for better Printing option
free web directory :yourowndir.com
seo service india : sbglobal.info
Old August 30th, 2010, 02:33 PM
Friend of Wrox
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts

Not really. You can already see that the C# has virtually nothing to do with it, all the "magic" is happening through Javascript. It sounds like you're using C# to manage your scripts, but that's the limit of it's involvement. I don't really like offering people a print button on a web page because I find the performance of browser print options superior, but if you want to go this route, just search on javascript and printing and you should find people's best tricks. Printing is not something that's terribly well standardized from browser to browser, system to system, or printer to printer. CSS printer styles are still in their infancy, and as you're finding out, the Javascript support "works" but you can't be too fussy about your output. If there's a way to better that, I don't know it. I've found printing styles to be tremendously frustrating when I've worked with them.

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.

Similar Threads
Thread Thread Starter Forum Replies Last Post
postback issues-asp.net 3.5 rajn ASP.NET 3.5 Professionals 2 September 24th, 2009 07:09 PM
help for printing in ASP.NET agro_menon .NET Framework 1.x 3 August 13th, 2007 05:15 AM
printing from asp.net user1 Crystal Reports 0 January 3rd, 2005 02:50 AM
ASP.NET controls performance issues Dmitriy Pro VB 6 0 November 1st, 2004 02:05 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.