Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
rpp.PrintOptions.PaperOrientation = PaperOrientation.Landscape;
PageMargins mrg = new PageMargins(); ;
mrg.bottomMargin = 200;
mrg.leftMargin = 650;
 
mrg.topMargin = 210;
rpp.PrintOptions.ApplyPageMargins(mrg);
 
rpp.PrintToPrinter(1, false, 0, 0);
when i give print order from client its finding server printer where its hosted please solve
Posted 21-Jan-13 1:43am
Edited 21-Jan-13 5:44am
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

when i give print order from client its finding server printer where its hosted please solve
Based on what you say, code runs on webserver and hence the printer connected to it is searched.
 
Try following:
oReportDocument.PrintToPrinter(1,true,0,0); 
Alternative could be to have an prints client side handle it. Use Javascript to print it out.
Similar discussion here: Printing Crystal Report on Client Side in ASP.NET C#[^]
 
Try following:
// "HTML printable version" of your page
javascript:window.print();
  Permalink  

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



Advertise | Privacy | Mobile
Web03 | 2.8.140926.1 | Last Updated 21 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100