Click to See Complete Forum and Search --> : Printing a form


February 11th, 2000, 10:41 AM
I have a form in an app with a Flexgrid plenty of data I just want to print that form.
When the user press one button the app have to print the active form. The same the user see in the screen but in paper.
Which is the simplest way of doing it??
Do I have to use the printer object??

Any advice will be greatly apreciatted.

Nauj

February 11th, 2000, 10:54 AM
use

me.Printform



this will send the form to your default printer.

Kyle Burns
February 11th, 2000, 12:51 PM
me.PrintForm

will print the form, but I don't think you'll be satisfied with the results. What looks good on screen is not always what will look good in print. You'd be much better off to either use one of the many report tools available or to use the printer object.

Ravi Kiran
February 12th, 2000, 04:09 AM
I dont have the api's at hand, but the technique goes like this:
There is an api that gets you the active window image. You can then bitblt it to the printer dc and print it. There are similar apis to print the complete screen or active window.


RK