Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing Active Form as report
Message
From
07/02/2002 14:34:21
 
 
To
07/02/2002 14:29:40
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00616687
Message ID:
00616902
Views:
23
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform