January 4, 200521 yr Hi, I would like to log when a user prints out a report. Not too hard. However, what if the printing doesn't happen? I logged it anyway. is there a way to find out if the Report/layout was printed successfully? thanks, J__
January 4, 200521 yr You need a global field to trap error codes then create this print script: Enter Browse Mode Allow User Abort [ Off ] Go to Layout [ Print_Layout ] Toggle Status Area [ Show ]{If needed} Print Setup [ Restore setup options, No dialog ] Enter Preview Mode Pause/Resume Script [ "0:00:30" ] Perform Script [ "PaperWarning**" ][ Sub-scripts ] Print Set Field [ _Error, Status( CurrentError) ] Enter Browse Mode If [ _Error = 0 ] Perform Script [ "Log_Print" ][ Sub-scripts ] End If Toggle Status Area [ Toggle ]{If needed} Go to Layout [ Original layout ] The syntax might be a little different for V7. The script goes to a print layout, shows the status area, enters preview mode, pauses for 30 seconds to preview the print, and then brings up the Print dialog box. If the user clicks OK (prints) the error trapped is "0" and the print is logged via another script. If the user cancels the print, nothing is logged. You could, however, log a cancelled print or run another script if needed. ...hope it helps...
January 5, 200521 yr Author Great. Thanks so much, I really appreciate it. Would this also work for OS X ? thanks again, sincerely, J__
January 13, 200520 yr Author Hi DykstrL, I owe you an apology for not following up. I didn't notice you had responded... and I had some pressure over the last few days - if you can believe that <grin> works the mac great! thanks for the great tip. Say, you wouldn't happen to know any good solutions for printing pdfs without distiller on Mac & Windodws would you? Just a thought. thanks so much, Sincerely, J__
January 13, 200520 yr The PDF issue would be different for Mac and Win clients. You could script the process to check for which platform and run sifferent scripts for the different platforms. In either case, you would need some kind of PDF printer (PDF995 works good for Windows machines) installed for each client.
January 14, 200520 yr Author Hi, thanks for the response. Yes, i was actually wondering if you knew of a good cross-platform PDF printing plug-in. Doesn't seem to be anyone who does both... except adobe (grin) thanks, sincerely, J__
Create an account or sign in to comment