473,499 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is Report Successfully Printed ?

While making Vouchers in a form, I have a POST button which validates
& posts the transaction to the main Accounts File.

I also have a PRINT button which provides the user with a preview of
the "to be printed" Voucher & then prints it onto paper.

When the user clicks PRINT ... my code validates the voucher & prints
it. Now I have to POST the transaction ... but how do I know if the
voucher has printed correctly ? i.e. no paper jam or some such other
problem.

Rgds,
Prakash
Feb 29 '08 #1
6 2585
On Fri, 29 Feb 2008 10:53:48 -0800 (PST), pr*************@gmail.com
wrote:
While making Vouchers in a form, I have a POST button which validates
& posts the transaction to the main Accounts File.

I also have a PRINT button which provides the user with a preview of
the "to be printed" Voucher & then prints it onto paper.

When the user clicks PRINT ... my code validates the voucher & prints
it. Now I have to POST the transaction ... but how do I know if the
voucher has printed correctly ? i.e. no paper jam or some such other
problem.

Rgds,
Prakash
There is only one sure fire method, and that is to walk over to the
printer, pick up the piece of paper, and look.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Feb 29 '08 #2
On Feb 29, 11:05 pm, fredg <fgutk...@example.invalidwrote:
On Fri, 29 Feb 2008 10:53:48 -0800 (PST), prakashwadhw...@gmail.com
wrote:
While making Vouchers in a form, I have a POST button which validates
& posts the transaction to the main Accounts File.
I also have a PRINT button which provides the user with a preview of
the "to be printed" Voucher & then prints it onto paper.
When the user clicks PRINT ... my code validates the voucher & prints
it. Now I have to POST the transaction ... but how do I know if the
voucher has printed correctly ? i.e. no paper jam or some such other
problem.
Rgds,
Prakash

There is only one sure fire method, and that is to walk over to the
printer, pick up the piece of paper, and look.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail


Thx Fred !! But what if after previewing the Report, the user clicks
the close button on the Access Toolbar or presses Ctrl-W to close the
preview window & DOES NOT print a hardcopy ?

Is there any way for me to trap this ?

Rgds,
Prakash.
Feb 29 '08 #3
On Fri, 29 Feb 2008 11:13:19 -0800 (PST), pr*************@gmail.com
wrote:
On Feb 29, 11:05 pm, fredg <fgutk...@example.invalidwrote:
>On Fri, 29 Feb 2008 10:53:48 -0800 (PST), prakashwadhw...@gmail.com
wrote:
>>While making Vouchers in a form, I have a POST button which validates
& posts the transaction to the main Accounts File.
>>I also have a PRINT button which provides the user with a preview of
the "to be printed" Voucher & then prints it onto paper.
>>When the user clicks PRINT ... my code validates the voucher & prints
it. Now I have to POST the transaction ... but how do I know if the
voucher has printed correctly ? i.e. no paper jam or some such other
problem.
>>Rgds,
Prakash

There is only one sure fire method, and that is to walk over to the
printer, pick up the piece of paper, and look.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

Thx Fred !! But what if after previewing the Report, the user clicks
the close button on the Access Toolbar or presses Ctrl-W to close the
preview window & DOES NOT print a hardcopy ?

Is there any way for me to trap this ?

Rgds,
Prakash.
So now you just wish to know if the report was SENT to the printer?

The value of intPreview you use is determined whether you have a
control in the report calculating [Pages].

Option Compare Database
Option Explicit
Dim intPreview As Integer

Private Sub Report_Activate()
intPreview = -1 ' Pages Not used
' intPreview = -2 ' Pages

End Sub
___________

Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As
Integer)

If intPreview >= 0 Then ' If [Pages] not used
' If intPreview >= 1 Then ' If [Pages] used
MsgBox "Sent to the Printer"
Else
MsgBox "Not sent to the Printer"
End If
intPreview = intPreview + 1

End Sub

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Feb 29 '08 #4

<pr*************@gmail.comwrote in message
news:54**********************************@s13g2000 prd.googlegroups.com...
While making Vouchers in a form, I have a POST button which validates
& posts the transaction to the main Accounts File.

I also have a PRINT button which provides the user with a preview of
the "to be printed" Voucher & then prints it onto paper.

When the user clicks PRINT ... my code validates the voucher & prints
it. Now I have to POST the transaction ... but how do I know if the
voucher has printed correctly ? i.e. no paper jam or some such other
problem.
As far as I know, you cannot determine this. I have seen long reports
crushed, wadded, crumpled, and folded by a shared printer that did not even
stop the printer, much less return an error code. The only sure way that I
know is to print it on a local printer, verify manually that it printed
properly, and make a manual entry to indicate that it has been printed.

Larry Linson
Microsoft Office Access MVP
Feb 29 '08 #5
pr*************@gmail.comwrote in message
news:54**********************************@s13g2000 prd.googlegroups.com...
While making Vouchers in a form, I have a POST button which validates
& posts the transaction to the main Accounts File.

I also have a PRINT button which provides the user with a preview of
the "to be printed" Voucher & then prints it onto paper.

When the user clicks PRINT ... my code validates the voucher & prints
it. Now I have to POST the transaction ... but how do I know if the
voucher has printed correctly ? i.e. no paper jam or some such other
problem.

Rgds,
Prakash
I use a finance accounts package and when cheques have been printed it asks
if they were produced. Based on what the user responds the programme can
either reprint the cheques or move on. I think this is a sensible way to
proceed.
Feb 29 '08 #6
On Mar 1, 3:08 am, "Deano" <de...@mailinator.comwrote:
prakashwadhw...@gmail.comwrote in message

news:54**********************************@s13g2000 prd.googlegroups.com...
While making Vouchers in a form, I have a POST button which validates
& posts the transaction to the main Accounts File.
I also have a PRINT button which provides the user with a preview of
the "to be printed" Voucher & then prints it onto paper.
When the user clicks PRINT ... my code validates the voucher & prints
it. Now I have to POST the transaction ... but how do I know if the
voucher has printed correctly ? i.e. no paper jam or some such other
problem.
Rgds,
Prakash

I use a finance accounts package and when cheques have been printed it asks
if they were produced. Based on what the user responds the programme can
either reprint the cheques or move on. I think this is a sensible way to
proceed.


Hmmm. I think this makes the most sense ... putting the onus onto the
user to confirm & validate the accuracy of the print. I have a feeling
I may just use this, but I'll also have to provide the user with a "Re-
Print" option in the event of a print mishap. I was actually trying to
avoid the "Re-Print" module. :-)

Many thanks to all who have replied.

Best Rgds,
Prakash.
Mar 1 '08 #7

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

Similar topics

0
2616
by: Becky | last post by:
Hi: I have a main report that calls a sub-report which contains several pages of data. One of the column headings in my sub-report is called "Funds". If several records contain the same Fund...
2
7134
by: Galina | last post by:
Hello I have a report, which lists records. Each record has money paid field. Money paid can be 0 or not 0. I calculate and print summary of money for a group in the group footer, as well as...
5
5782
by: Tom Louchbaum | last post by:
When I preview my Access 2000 Report it looks fine. When I Email the report using DoCmd.SendObject acSendReport, "Report", acFormatRTF, "To Address", , , "Subject", , False the resulting...
2
4566
by: Wolfgang | last post by:
Hi, I need to timestamp printed records with the printing date. According to the customer's requests the report must be opened in preview-mode and the user clicks on the printer button if he...
1
4109
by: gus kernot | last post by:
I have copied code from the MS Knowledge Base that produces the above report. I understand the code and am pretty comfortable working with recordsets. I used the same report structure...
0
878
by: MBhat | last post by:
Hello, Can anyone tell me how to identify when a crystal report.net is printed successfully by hitting the print icon of the crystal report?? I need to display an alert saying print was...
1
7277
by: Susan Bricker | last post by:
Greetings. I have a report (actually all of my reports in an MDB) that I want to date/time stamp at the bottom. Previously, I had used the builtin function of Now(). I thought that would give...
4
1502
by: Coastie | last post by:
Good afternoon- I have several reports that are based on local tables formed from querying an ODBC database. When the download occurs successfully, I record the date/time as the only record in a...
1
3326
by: adolph | last post by:
I have a problem with pages being printed out of order. An example is a 15 page duplexed report. Title page fine back of title page blank. (As it should be) SEcond page front, bottom says Page 1...
0
7128
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
7169
Oralloy
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,...
0
7215
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...
1
6892
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5467
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,...
1
4917
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4597
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1425
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
661
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.