473,473 Members | 4,185 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Capturing Print (not Preview) Date

In an A97 app I'm redeveloping, I've got a field in a table called
TS_LAST_PRINT which indicates the last date this record was printed.
That is a hard copy was produced, not an on screen print preview.

I'm sure I can capture this in code in a proc which does the
docmd.printout or a DoCmd.RunCommand acCmdPrint.

But what I'm worried about are more savvy users who just go Ctrl-P.

Any suggestions on how to capture this keyboard combination so I can
populate TS_LAST_PRINT?

Thanks in advance for any suggestions.
--
Tim - http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #1
5 1519
On Thu, 14 Oct 2004 21:04:08 -0230, Tim Marshall
<TI****@antarctic.flowerpots> wrote:

Ctrl+P can be captured using an AutoKeys macro.
But sending it to the printer doesn't mean it printed. The best
strategy is to ask the user.

-Tom.

In an A97 app I'm redeveloping, I've got a field in a table called
TS_LAST_PRINT which indicates the last date this record was printed.
That is a hard copy was produced, not an on screen print preview.

I'm sure I can capture this in code in a proc which does the
docmd.printout or a DoCmd.RunCommand acCmdPrint.

But what I'm worried about are more savvy users who just go Ctrl-P.

Any suggestions on how to capture this keyboard combination so I can
populate TS_LAST_PRINT?

Thanks in advance for any suggestions.


Nov 13 '05 #2
Tom van Stiphout wrote:

Ctrl+P can be captured using an AutoKeys macro.
Thank you Tom.
But sending it to the printer doesn't mean it printed. The best
strategy is to ask the user.


Crumbs! You are right - I suppose they could cancel the operation.
What do you mean by asking the user? Is it as simple as you make it
sound? 8) I mean, simply a msgbox asking "Do you want to record this
as a print job sent?"
--
Tim - http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #3
Tim Marshall <TI****@antarctic.flowerpots> wrote in message news:<ck**********@coranto.ucs.mun.ca>...
Tom van Stiphout wrote:

Ctrl+P can be captured using an AutoKeys macro.


Thank you Tom.
But sending it to the printer doesn't mean it printed. The best
strategy is to ask the user.


Crumbs! You are right - I suppose they could cancel the operation.
What do you mean by asking the user? Is it as simple as you make it
sound? 8) I mean, simply a msgbox asking "Do you want to record this
as a print job sent?"


And then asking if the job printed OK. Then go ahead and update whatever.
Nov 13 '05 #4
On Fri, 15 Oct 2004 01:40:55 -0230, Tim Marshall
<TI****@antarctic.flowerpots> wrote:

Sure, a MsgBox would work. I've also seen implementations with a
checkbox on the main form.

-Tom.

Tom van Stiphout wrote:

Ctrl+P can be captured using an AutoKeys macro.


Thank you Tom.
But sending it to the printer doesn't mean it printed. The best
strategy is to ask the user.


Crumbs! You are right - I suppose they could cancel the operation.
What do you mean by asking the user? Is it as simple as you make it
sound? 8) I mean, simply a msgbox asking "Do you want to record this
as a print job sent?"


Nov 13 '05 #5
Tim,
On my own Windows domain I've got the system log telling me a job was
printed on a printer. It's in the logs on my server. Also, I remember a
couple cases where a client had WinNT Server sending a NET SEND message from
the server saying a job had printed. One would think there was a way to use
api's or some such to trap the logged event or NET SEND message and do what
you need in your database.

"Tim Marshall" <TI****@antarctic.flowerpots> wrote in message
news:ck**********@coranto.ucs.mun.ca...
In an A97 app I'm redeveloping, I've got a field in a table called
TS_LAST_PRINT which indicates the last date this record was printed. That
is a hard copy was produced, not an on screen print preview.

I'm sure I can capture this in code in a proc which does the
docmd.printout or a DoCmd.RunCommand acCmdPrint.

But what I'm worried about are more savvy users who just go Ctrl-P.

Any suggestions on how to capture this keyboard combination so I can
populate TS_LAST_PRINT?

Thanks in advance for any suggestions.
--
Tim - http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto

Nov 13 '05 #6

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

Similar topics

16
by: Neo Geshel | last post by:
I'm helping on a web site, and it's got our knickers in a knot. We're using the same basic CSS files (with mods) and same headers as from our other sites, but the "print preview" won't work...
7
by: Pat | last post by:
I would like to send the Print Preview of a MS Access form to a Snapshot file. The form contains an OLE graph. BACKGROUND A snapshot of a report is possible. If I could I would use a report to...
0
by: John | last post by:
I have a class that creates an AxWebBrowser object in the background, loads some arbitrary html content, then shows the user a print preview. The only problem is, this print preview is a tiny...
14
by: Brent Burkart | last post by:
I am trying to capture the Windows Authenticated username, but I want to be able to capture the login name that exists in IIS, not Windows. In order to enter my company's intranet through the...
2
by: Dean Slindee | last post by:
Anybody written code in VB.NET to: 1) show a print preview window of reports already written and stored in an Access 2002 database; or 2) execute the print of a report stored in an Access 2002...
6
by: CSharpguy | last post by:
In my gridview I have 2 -3 template fields which are hyperlinks. I allow the user to print this grid. When the grid prints it also prints the links, how can I take the user to a print preview page...
9
by: igotyourdotnet | last post by:
I need to create a print preview page BUT my page I need to print has a grid and in the grid I have 2 or 3 columns that have links I want to hide the columns with the links on my print preview page...
17
imrosie
by: imrosie | last post by:
Hello, I've gone through the tutorials, and searched. Still I can't find a clear solution to my issue. I have a form with a subform that displays a listbox control called 'theOrderID'. I have...
11
by: Gord | last post by:
When I open a certain report, it runs some code that generates the records that will be displayed in that report. This works fine. When I go to print preview the report it appears that the code...
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...
1
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
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,...
0
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
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
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.