473,698 Members | 2,747 Online
Bytes | Software Development & Data Engineering Community
+ 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.RunComman d 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 1535
On Thu, 14 Oct 2004 21:04:08 -0230, Tim Marshall
<TI****@antarct ic.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_PRIN T 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.printo ut or a DoCmd.RunComman d 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****@antarct ic.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****@antarct ic.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****@antarct ic.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.RunComman d 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
11430
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 correctly on this site. The site is here: http://askdrray.kabis.net (temporary location) The site is being worked on, and only the front page works right now. Expect constant changes. Ignore everything “below the fold”, as the links there...
7
14365
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 display the graph but it is not possible to send query parameters to an OLE graph on a report (or programatically change any properties of an OLE Graph). However with a Form you do have the ability to change the RowSource of
0
2015
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 little window on the top left hand corner of the screen. Thinking that this may have something to do with the Print Preview dialog not being able to detect from it's caller's size so that it can set its own size equal to that of the caller, I...
14
2541
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 internet, they have to login. I want to be able to capture that login versus their Windows login because I need to know who they are from any computer rather than only their computer. Any ideas? Thanks
2
14119
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 database? Thanks, Dean Slindee
6
3467
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 and not show the templated fields, (hyperlinks) and also not print those fields?
9
4077
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 so they don't print. Is that possible to do and if so can someone point me somewhere or show my a code snippet on how to do this?
17
2412
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 set it up (height 4") so that a long list of "saved" orders displays on the Form. The navigation works, so a person can scroll through the list of past orders. I'm attempting to set up a way for the customer to search by date. (filter the past orders)...
11
7327
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 is run again? This is causing certain error problems. 1 Why does the code run for a print preview when the report already exists? 2 What command do I use in code to find out if a report (or any other object for that matter) is already...
0
8611
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9170
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8904
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7741
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6531
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4372
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4624
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
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 we have to send another system
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.