Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
My problme is that i have code to print pdf file of SSRS report and send to default printer for printing while click on print button on aspx page but its work fine while run through code but while i have publish code on iis then file not being printed bcz its on server side so plz give me solution what should i do???

i have try following method
1.Windows.print()
2.rsclientprinter
Posted
Updated 4-Aug-14 3:30am
v2

1 solution

Don't try to enforce printing of the document you are sending.

Better just provide a link to the document and advise to print it on that page. This is what nearly all decent Web site do. (For a good example, look at Google Map.) The user knows better what and when to print anything and is quite able to print it, choose options, etc. Moreover, the user may not have a printer connected to the computer at the moment (or may not have a printer at all). Such user may quite reasonably decide to use one of the browser's "save" features to save the file and maybe even print it later (which is rarely really needed, mostly only when sending some paper mail with the copy of your document; fortunately, real printing is used less and less, which is one of the goal of computerization, making it easier for environment). If you try to force the user to print the document, it can even lead to the loss of this document.

Don't do it, leave it to the user.

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900