Hello Dale,
It appears your application class has a method called PrintWindow(). What code is in that method()?
>I'm pretty sure I received this tip from somebody on the UT a couple years ago. Wish I knew who to give the credit to. Anyway, the following works for me.
>
>I created a button on my toolbar to hold the following code:
>
>if type("_screen.activeform") = "O"
> _screen.activeform.printform()
>else
> wait wind "You can't use this unless an application form is active"
>endif
>
>In my form class I added a method called printform. The following is the code for that method.
>
>DECLARE INTEGER GetFocus IN WIN32API
> oApp.PrintWindow(GetFocus(), "PRINT JOB TITLE")
>
>Hope this helps.
>
>Dale
>
>
>
>>How would you give user ability to screen print only active form to
>>printer and specify landscape / portrait?
>>I want to prevent having to re-draw the form as a report since the
>>form is excactly what needs to print.
>>I know user can do screen print but it will have all of the background
>>stuff in it.
>>
>>thanks in advance.
>>
>>Ronnie
Steve Gibson