Screen Print to a Printer HELP.........

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris Calhoun

    #1

    Screen Print to a Printer HELP.........

    Does anyone know how to with an event like on_buttonclick send a screen shot
    of the active window to the printer. Explanation and\or code samples would
    be helpful.


    Thanks in advance!!!


  • Chris Calhoun

    #2
    Re: Screen Print to a Printer HELP.........

    A code sample would be helpful.

    Thanks.
    "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c om> wrote in
    message news:ehTzU41sDH A.2464@TK2MSFTN GP12.phx.gbl...[color=blue]
    > Chris,
    >
    > You will probably have to use a little interop code here. If you have
    > the handle to a window, and you have a device context handle (which you[/color]
    can[color=blue]
    > get from the Graphics class), then you can call PrintWindow to have the
    > window paint itself on the device context. Of course, you will have to[/color]
    make[color=blue]
    > the call through the P/Invoke layer.
    >
    > Hope this helps.
    >
    >
    > --
    > - Nicholas Paldino [.NET/C# MVP]
    > - mvp@spam.guard. caspershouse.co m
    >
    > "Chris Calhoun" <ccalhoun@medbi ll.com> wrote in message
    > news:%236iqBD1s DHA.2380@TK2MSF TNGP09.phx.gbl. ..[color=green]
    > > Does anyone know how to with an event like on_buttonclick send a screen[/color]
    > shot[color=green]
    > > of the active window to the printer. Explanation and\or code samples[/color][/color]
    would[color=blue][color=green]
    > > be helpful.
    > >
    > >
    > > Thanks in advance!!!
    > >
    > >[/color]
    >
    >[/color]


    Comment

    Working...