Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: print to network printers Post Reply Post New Topic
Author Message
philany
Newbie
Newbie
Avatar

Joined: 17 Jan 2008
Location: South Africa
Online Status: Offline
Posts: 6
Quote philany Replybullet Topic: print to network printers
    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
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet 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>
IP IP Logged
philany
Newbie
Newbie
Avatar

Joined: 17 Jan 2008
Location: South Africa
Online Status: Offline
Posts: 6
Quote philany Replybullet Posted: 09 Apr 2008 at 2:55am
Hai. 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 = @\\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
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.047 seconds.