473,396 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Crystal Reports PrintToPrinter Method seems to hang.

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?
Nov 20 '05 #1
4 6376
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'talways return.

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

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

Is there a way to for us catch an event, or something that will tellus what is going on?
.

Nov 20 '05 #2
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'talways return.

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

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

Is there a way to for us catch an event, or something that will tellus what is going on?
.

Nov 20 '05 #3
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" <an*******@discussions.microsoft.com> wrote in message news:<15*****************************@phx.gbl>...
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?
.

Nov 20 '05 #4
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" <an*******@discussions.microsoft.com> wrote in message news:<15*****************************@phx.gbl>...
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?
.

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Matthew Williams | last post by:
Hi, I've produced a Crystal Report in Crystal Reports.NET with rounded corner shaded boxes. When I send it directly to the Printer using PrintToPrinter() it is formated correctly. When I...
2
by: Alx Sharp | last post by:
Hello group! I'm facing a strange problem in the application I'm writing... I'm using crystal reports for printing sale receipts, and I wrote this lines of code: ...
2
by: Alberto | last post by:
1) How can I say to the crystal report viewer the number of copies? 2) How can I set the page configuration to horizontal? thank you
1
by: John | last post by:
Hi all, I know it's off-topic but I've both struggled with this for too long and am getting no anwser from what I thought was the more-relevent Crystal N.G. Thinking this was easy, it's more...
4
by: mike | last post by:
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...
2
by: Paul Daly (MCP) | last post by:
Hello, I have an application that uses the version of CR.NET that came with VS.NET 2003. The CrystalReportViewer control prints the report fine when initiated by the user on the form, but I...
0
by: John Smith | last post by:
Hello, I have 7 different crystal reports that need to be collated. Since I want to end up with a page of each (which all together make a single report), I created a blank main report and then...
0
by: John Smith | last post by:
Hello, I am developing a VB.NET 2003 application that will use lots of Crystal Reports. Sometimes the users will preview a report in a Crystal report viewer, and sometimes they will send the...
1
by: Peter Afonin | last post by:
Hello, I'm using Crystal Reports for Visual Studio 2005. I'm trying to print my reports to the postscript file: PrinterSettings ps = new PrinterSettings(); ps.PrinterName = "HP Deskjet 3840...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.