dbTalk Databases Forums  

Printing a previewed report

comp.databases.paradox comp.databases.paradox


Discuss Printing a previewed report in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jim Moseley
 
Posts: n/a

Default Printing a previewed report - 11-14-2006 , 02:18 PM







Is there a way to tell if a user has printed a previewed report?

Currently, my code just opens the report (using a ReportPrintInfo structure).
If they're previewing it, the method just returns, leaving the report open.
Otherwise it prints it, then returns.

I'm putting in an audit function to show all emails, faxes, and reports that
were generated for each record. But I don't want misleading records if they
close a preview without printing it.

Thanks in advance!
Jim Moseley

Reply With Quote
  #2  
Old   
Tony McGuire
 
Posts: n/a

Default Re: Printing a previewed report - 11-14-2006 , 06:19 PM







You would have to remove normal methodologies for printing, and create your
own form with buttons that print and log that they printed.



---------------------------------------------------------
Tony McGuire



Reply With Quote
  #3  
Old   
Jim Moseley
 
Posts: n/a

Default Re: Printing a previewed report - 11-14-2006 , 07:31 PM




Quote:
You would have to remove normal methodologies for printing, and create your

own form with buttons that print and log that they printed.
Tony,

Ah, the key would be to wait() on the report, right? Thus, I could setup
my own menu to match the current Pdox one, and capture each command.

This also ties in with another issue I've recently come across. I'm letting
my users declare a form to be a dialog, so they can park it on an extra monitor.
But, previewed reports end up behind them. Is there a report equivalent
to form.OpenAsDialog()? Extra credit - can you change an open non-dialog
form to a dialog? Seems like a few fancy windows calls would be needed (anyone?
anyone?)

Thanks,
Jim Moseley


Reply With Quote
  #4  
Old   
Randy
 
Posts: n/a

Default Re: Printing a previewed report - 11-14-2006 , 09:33 PM



You may be able to park the dialog on the second screen but the report
will open always within the app frame...to my knowledge.

Regarding the dialog blocking the report... you could use something
like this in the dialog's report open button:


hide()
rep.open("A_REPORT")
rep.wait()
show()

or ...

menuaction(menucontrolminmize)
rep.open("A_REPORT")
rep.wait()
menuaction(menucontrolrestore)

Still not air tight. What if the user minimizes the report and then
gets confused? Problem is that the dialog can't re-appear until the
report is actually closed.

You may run into menu issues when opening the report from a dialog as
in--just not working. Consider a separate Preview and Print button on
the dialog.

Randy



Jim Moseley wrote:
Quote:
You would have to remove normal methodologies for printing, and create your

own form with buttons that print and log that they printed.

Tony,

Ah, the key would be to wait() on the report, right? Thus, I could setup
my own menu to match the current Pdox one, and capture each command.

This also ties in with another issue I've recently come across. I'm letting
my users declare a form to be a dialog, so they can park it on an extra monitor.
But, previewed reports end up behind them. Is there a report equivalent
to form.OpenAsDialog()? Extra credit - can you change an open non-dialog
form to a dialog? Seems like a few fancy windows calls would be needed (anyone?
anyone?)

Thanks,
Jim Moseley


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.