How to check if a report was sent to a printer...

N

NISS-IT

Hi

I want to find out if a report was sent to a printer (after being
previewed).

( I could ask the user through a msgbox after the report was closed if the
user actually printed the report, but it
would be nice if this was recorded automatically)

I have looked everywhere but cant find anything...

Leif Hole
 
A

Allen Browne

You will need to create a custom toolbar and menu, so that your own code
gets called if the user prints.
 
N

NISS-IT

Do you know if autokey macro CTRL+P will override the builtin ?

Is enough to remove Print from the File menu, or do I have to make custom
menus ?

I have made custom toolbars for the app. but I havent had the same success
for custom menues, do you know of a description of how to make the menues ?

Last question: If I bring up the Printout dialogbox with my own macro, is
there a way to check if the report was printed or not ?

Leif Hole
 
A

Allen Browne

To reassign the Ctrl+P shortcut to something else, create a macro named
AutoKeys, with these 2 characters in the macro name column:
^P

If you remove Print from the File menu, it will be missing from all your
applications? Wouldn't it be easier to make a new command bar and change its
type to menu, and copy the items you want onto it?

Ultimately, you cannot know if a physical process like a print succeeded, or
whether the network printer was not available, or the paper jammed, or any
of a dozen issues. If it really matters, what I always to is to create a
table recording the primary key of the records that were in the print run
batch. That makes it dead easy for the user to reprint the same records
again if something did go wrong, and leaves you with a complete record of
what was printed when.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top