PC Review


Reply
Thread Tools Rate Thread

Crystal Reports PrintToPrinter Method seems to hang.

 
 
mike
Guest
Posts: n/a
 
      8th Apr 2004
Printer - HP4300 in 3 different locations.
VB.Net

Calling crReportObject.PrintToPrinter(iRptCopies, True, 1, -1) doesn't
always return.

We have had at least 4 cases now where the printers above seem to hang
with several reports in the printer queue and when this happens the
method PrintToPrinter doesn't return, thus hanging the application. No
error message is logged in the exception log. It simply seems to be
waiting for the printer to return or something.

This is creating havoc with our Invoice process. Each of the printers
in the 3 different locations have had this problem

Is there a way to for us catch an event, or something that will tell
us what is going on?
 
Reply With Quote
 
 
 
 
Jorge
Guest
Posts: n/a
 
      8th Apr 2004
Hi Mike,

There's a big limitation with PrintToPrinter You can't
use it to print on shared printers only local.

Kind Regards
Jorge
>-----Original Message-----
>Printer - HP4300 in 3 different locations.
>VB.Net
>
>Calling crReportObject.PrintToPrinter(iRptCopies, True,

1, -1) doesn't
>always return.
>
>We have had at least 4 cases now where the printers

above seem to hang
>with several reports in the printer queue and when this

happens the
>method PrintToPrinter doesn't return, thus hanging the

application. No
>error message is logged in the exception log. It simply

seems to be
>waiting for the printer to return or something.
>
>This is creating havoc with our Invoice process. Each of

the printers
>in the 3 different locations have had this problem
>
>Is there a way to for us catch an event, or something

that will tell
>us what is going on?
>.
>

 
Reply With Quote
 
mike
Guest
Posts: n/a
 
      12th Apr 2004
I'm not sure that would be true. We print 1,000's of reports to shared
printers, but occasionaly a printer will stop and PrintToPrinter
doesn't return. Once the printer's queue is cleaned out, the printing
starts again.

"Jorge" <(E-Mail Removed)> wrote in message news:<15b4c01c41db7$463c63c0$(E-Mail Removed)>...
> Hi Mike,
>
> There's a big limitation with PrintToPrinter You can't
> use it to print on shared printers only local.
>
> Kind Regards
> Jorge
> >-----Original Message-----
> >Printer - HP4300 in 3 different locations.
> >VB.Net
> >
> >Calling crReportObject.PrintToPrinter(iRptCopies, True,

> 1, -1) doesn't
> >always return.
> >
> >We have had at least 4 cases now where the printers

> above seem to hang
> >with several reports in the printer queue and when this

> happens the
> >method PrintToPrinter doesn't return, thus hanging the

> application. No
> >error message is logged in the exception log. It simply

> seems to be
> >waiting for the printer to return or something.
> >
> >This is creating havoc with our Invoice process. Each of

> the printers
> >in the 3 different locations have had this problem
> >
> >Is there a way to for us catch an event, or something

> that will tell
> >us what is going on?
> >.
> >

 
Reply With Quote
 
New Member
Join Date: Nov 2008
Posts: 1
 
      18th Nov 2008
Hi guys,

I am having similar problem. From my development environment, I can send the PrinttoPrinter command and reports are printed fine. However, when I package the reports and install it on a QA server then this method hangs. Both of the boxes have network printers installed.

Can you please tell me how you have resolved this issue on your end?

Thanks,
Faisal
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Reports SetDataSource Method =?Utf-8?B?SlQ=?= Microsoft Dot NET Framework Forms 1 4th May 2006 12:44 PM
Crystal report PrintToPrinter in ASP.NET CAradhana@gmail.com Microsoft ASP .NET 1 18th Apr 2005 04:10 PM
Crystal Reports PrintToPrinter Method Alx Sharp Microsoft C# .NET 2 28th Feb 2005 02:43 AM
Crystal Reports SetDataSource Method takes a long time! =?Utf-8?B?TWlrZSBC?= Microsoft Dot NET Framework Forms 0 3rd Dec 2004 02:49 PM
Printing crystal report using PrintToPrinter Bryan Bernstein Microsoft ASP .NET 0 20th May 2004 07:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:43 AM.