CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Printing a form

  1. #1
    Guest

    Printing a form

    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



  2. #2
    Guest

    Re: Printing a form

    use

    me.Printform



    this will send the form to your default printer.


  3. #3
    Join Date
    Feb 2000
    Location
    Indiana
    Posts
    308

    Re: Printing a form

    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.


  4. #4
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Printing a form

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured