Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Freaky Print ing Problem

Status
Not open for further replies.

deadhead7

Programmer
Apr 18, 2003
57
US
I have a print problem. When my users goto a form and click the Print button on the tool bar it prints the current screen they are viewing, Thats fine. But if the go to File Then Print it prints a form that is a few screens behind the current form(first main screen). Has this ever happened to anyone before and can it be fixed.
 
When the user goes to file/print does the form in front lose focus and the form in back gain focus? The header of the form with focus will turn a color (blue).

-Tracy

 
Dear Deadhead,

It is the same with print view. When you use a switchboard and have it open a form, and then press print preview (c.q. print) it will print the switchboard and not the form that is open.

Basic way around it is, to add the following macro to you menu button. (if not using switchboard)

macro:
open -formb "name"
Close (form a) "name" - save yes

-this will then close the first form.

Then on the form b that is opened on the button that closes the form b add a macro that says

open -form a "name"
Close (form b) "name" save yes

I am not sure on the close command whether you have to specify the name, you might have to switch the order of commands in the macro until you find which way works best for you.

If using a swtichboard, you can aad a print button to the opened menu an it will print that menu, or you can have the switchboard menu run a macro which opens the form you want (see above then for the macro)

I hope it helps :)



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top