Hi!
Is there any way to check if printer is active in access 2000?
I have a report that is printing (local printer), and before I do
anything more in code, I do want to check if printer is active.
Do I access the windows messaging system or...?
Anybody got a clue?
Me.Name 4 3560
> Is there any way to check if printer is active in access 2000? I have a report that is printing (local printer), and before I do anything more in code, I do want to check if printer is active.
Do I access the windows messaging system or...?
Anybody got a clue?
Me.Name
I don't have an answer but I'd be interested in this one as well.
Me.Corrupted
"Chuck Grimsby" <c.*******@worldnet.att.net.invalid> wrote in message
news:vu********************************@4ax.com... On 2 Feb 2005 23:41:49 -0800, ge***********@hotmail.com (Geir Baardsen) wrote:
Is there any way to check if printer is active in access 2000? I have a report that is printing (local printer), and before I do anything more in code, I do want to check if printer is active. Do I access the windows messaging system or...? Anybody got a clue?
Printers do funny things like "jam", run out of toner, print the wrong way, print with lines on them, and even lose printing jobs that makes any automated methods for determining that a job has "finished" a exercise in futility.
Arvin Miller (if memory serves) once posted a message saying that to make sure a printing process completed successfully, he printed out an extra page with a random number on it, and asked the user to type it in. If what the user types in doesn't match, the job hasn't completed. I've used that method a couple of times and it works great, although it is a manual method.
It's also the only one you can completely rely on!
-- A Person's Language Is An Index Of His Mind.
------
Is there anyway to make the random number invisible on the print preview.
Some users may want to save time by previewing the last page to enter the
random number into the system before retrieving the output.
"Chuck Grimsby" <c.*******@worldnet.att.net.invalid> wrote in message
news:lv********************************@4ax.com... On Thu, 3 Feb 2005 10:17:46 -0600, "paii, Ron" <pa**@packairinc.com> wrote:"Chuck Grimsby" <c.*******@worldnet.att.net.invalid> wrote in message news:vu********************************@4ax.com.. . On 2 Feb 2005 23:41:49 -0800, ge***********@hotmail.com (Geir Baardsen) wrote: >Is there any way to check if printer is active in access 2000? >I have a report that is printing (local printer), and before I do >anything more in code, I do want to check if printer is active. >Do I access the windows messaging system or...? >Anybody got a clue? Printers do funny things like "jam", run out of toner, print the wrong way, print with lines on them, and even lose printing jobs that makes any automated methods for determining that a job has "finished" a exercise in futility. Arvin Miller (if memory serves) once posted a message saying that to make sure a printing process completed successfully, he printed out an extra page with a random number on it, and asked the user to type it in. If what the user types in doesn't match, the job hasn't completed. I've used that method a couple of times and it works great, although it is a manual method. It's also the only one you can completely rely on!
Is there anyway to make the random number invisible on the print preview. Some users may want to save time by previewing the last page to enter the random number into the system before retrieving the output.
I can't find a database I've done this in right now... I know I have them, I just can't find them. (They're backed up on CD, and I'm really too tired to look through them. Three 20 hour days in a row has left me fairly wiped.)
If memory serves however, the Report Activate and Deactivate events can be used to determine what mode a report is opened in. Neither event fires when in Print mode, but do for Preview. Use those events to toggle whether or not the text box with the random number is populated or not.
There may be some pre-written code at the Access Web for this: http://www.mvps.org/access/
I also have a half-memory of this, so you'll want to check it out yourself, but the memory cells are reminding me that if you use the On_Print event to populate the random number text box, you'll get a new random number each time the report is "printed" whether it is in Preview mode or not. So if a user opens the report, scrolls to the end, then prints the report, the number on the screen won't match the number on the printed page. Take that with a grain of salt however, my brain cells are not as young as they used to be.
-- A Bird In The Hand Will Doo Doo On You.
Thank you for your input
I will look into this and Post on this thead if I get something working.
"Chuck Grimsby" <c.*******@worldnet.att.net.invalid> wrote in message
news:lv********************************@4ax.com... On Thu, 3 Feb 2005 10:17:46 -0600, "paii, Ron" <pa**@packairinc.com> wrote:"Chuck Grimsby" <c.*******@worldnet.att.net.invalid> wrote in message news:vu********************************@4ax.com.. . On 2 Feb 2005 23:41:49 -0800, ge***********@hotmail.com (Geir Baardsen) wrote: >Is there any way to check if printer is active in access 2000? >I have a report that is printing (local printer), and before I do >anything more in code, I do want to check if printer is active. >Do I access the windows messaging system or...? >Anybody got a clue? Printers do funny things like "jam", run out of toner, print the wrong way, print with lines on them, and even lose printing jobs that makes any automated methods for determining that a job has "finished" a exercise in futility. Arvin Miller (if memory serves) once posted a message saying that to make sure a printing process completed successfully, he printed out an extra page with a random number on it, and asked the user to type it in. If what the user types in doesn't match, the job hasn't completed. I've used that method a couple of times and it works great, although it is a manual method. It's also the only one you can completely rely on!
Is there anyway to make the random number invisible on the print preview. Some users may want to save time by previewing the last page to enter the random number into the system before retrieving the output.
I can't find a database I've done this in right now... I know I have them, I just can't find them. (They're backed up on CD, and I'm really too tired to look through them. Three 20 hour days in a row has left me fairly wiped.)
If memory serves however, the Report Activate and Deactivate events can be used to determine what mode a report is opened in. Neither event fires when in Print mode, but do for Preview. Use those events to toggle whether or not the text box with the random number is populated or not.
There may be some pre-written code at the Access Web for this: http://www.mvps.org/access/
I also have a half-memory of this, so you'll want to check it out yourself, but the memory cells are reminding me that if you use the On_Print event to populate the random number text box, you'll get a new random number each time the report is "printed" whether it is in Preview mode or not. So if a user opens the report, scrolls to the end, then prints the report, the number on the screen won't match the number on the printed page. Take that with a grain of salt however, my brain cells are not as young as they used to be.
-- A Bird In The Hand Will Doo Doo On You.
I add a Activate and Deactivate event function that calls msgbox with
"Report Activate" and "Report Deactivate". The Report Activate event fires
when a report is previewed, and the Deactivate event fires when the report
is closed. There is no additional activity on these events when the report
is printed from the preview.
I did note an extra Activate after the Deactivate when I previewed and
closed the report.
These events do not fire if the report is printed without a preview. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Yaseen D M |
last post by:
I am list groups of a user from active directory. I get the list but if i
remove the user from one of the groups and again list the groups it still
includes the groups from the the user was...
|
by: trint |
last post by:
My program must check printer status before sending a job. Does anyone
have a clue?
Thanks,
Trint
|
by: Michael |
last post by:
Hi!
Is it possible to check the active solution configuration (debug, release or some user defined) at compile time using for example preprocessor directives?
Best regards,
Michael
|
by: Pavan |
last post by:
I have a application which at the first installation has to check the active
directory and send the username, password and domain to a webservice which
inturn will invoke a dll in com+ and checks...
|
by: Vanessa |
last post by:
Hi,
I'm trying to select a printer in the system printers collection. I'm able
to do this.
However, if the printer is a network printer and happens that this printer
is not on or not ready, I...
|
by: Mr. Bean |
last post by:
Hello,
I'm trying to retrieve the user's properties from Active Directory. I
was able to retrieve all the user properties, however, I wassnt able
to get the manager's user name. What I got was...
|
by: Alfa & Omega |
last post by:
I found this example but when it comes to:
Resp = WebReq.GetResponse();
It jus freezes my application??
<CODE>
public static bool IsConnected()
{
System.Uri Url = new...
|
by: rave007 |
last post by:
Dear All,
Currently i'm developing a program in VB6 that will check My Active Directory records and automatically disable the user account if the user is already terminated/resigned in our...
|
by: Manish0383 |
last post by:
how can i know using .net that printer is connected to computer?
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
| |