Print Page | Close Window

print to network printers

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=2851
Printed Date: 06 May 2024 at 6:27pm


Topic: print to network printers
Posted By: philany
Subject: print to network printers
Date Posted: 08 Apr 2008 at 7:47am

I've bee triying to print document from network printer, but I got an Error, but when I printing with priter on my local machine it works fine.

Some help.Cry

-------------
pk



Replies:
Posted By: BrianBischof
Date Posted: 08 Apr 2008 at 10:02am
Off the top of my head, I don't know why you would be getting an error when printing to the network printer. But for anyone to have a chance of helping you, you need to give more details.

-------------
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>


Posted By: philany
Date Posted: 09 Apr 2008 at 2:55am
Hai. http://www.crystalreportsbook.com/forum/member_profile.asp?PF=4&FID=13 - BrianBischof
 
I need to print crystal report through net work printer.
 
I'm using PrintToPrinter(int ncopies,boo collated,int startpage,int endpage) method to print.
 
I guss problem is with printers name.
 
But here is a sample.
 
PrintOption printoption = reportDoc.PrintOptions;
 
printoption.PrinterName = @ file://\\server\Canon%20LASER%20SHOT%20LBP-1120 - \\server\Canon LASER SHOT LBP-1120 ;
 
reportDoc.PrintToprint(1,false,0,0)
 
The error : The RPC server is unavailable
 
May be there is something I'm doing wrong some where because the code is working fine on the local mechine.
 
You input will be highly appreciated. 


-------------
pk



Print Page | Close Window