Screen print though code


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Screen print though code

  1. #1
    Abhinav Mathur Guest

    Screen print though code


    hi dan,
    I have been reading all your books and I liked developing COM components
    with VB6 AND api BOOK.
    Well , I'm having a problem where I want to print the screen on to printer
    just like Automating Print Screen keyboard button.
    I intend to print the outlook form using a Vb6 dll call.
    Can u please tell me any API which can do the stuff or peraphs the code itself
    (HINT)
    NEED THE RESPONSE FAST AS DEADLINES ARE ON MY NECK
    Awaiting response
    Share on Google+

  2. #2
    Dan Appleman Guest

    Re: Screen print though code

    Look at the simkeys.vbp example in chapter 6 of my API book.
    That gets you the screen image into the clipboard.
    Another approach is to use GetDesktopWindow to get a handle to the desktop, then
    use BitBlt to get the bitmap.
    See the PicPrint example for code that prints bitmaps.

    Best of luck.

    Dan


    Abhinav Mathur wrote:

    > hi dan,
    > I have been reading all your books and I liked developing COM components
    > with VB6 AND api BOOK.
    > Well , I'm having a problem where I want to print the screen on to printer
    > just like Automating Print Screen keyboard button.
    > I intend to print the outlook form using a Vb6 dll call.
    > Can u please tell me any API which can do the stuff or peraphs the code itself
    > (HINT)
    > NEED THE RESPONSE FAST AS DEADLINES ARE ON MY NECK
    > Awaiting response


    Share on Google+

  3. #3
    Phil Weber Guest

    Re: Screen print though code

    Abhinav: In addition to the references Dan recommended, you may find the
    following article helpful:

    HOWTO: Capture and Print the Screen, a Form, or any Window
    ( http://support.microsoft.com/support.../q161/2/99.asp )

    ---
    Phil Weber


    Share on Google+

Similar Threads

  1. Code security
    By Rob Teixeira in forum .NET
    Replies: 5
    Last Post: 11-27-2001, 07:12 PM
  2. Brain Washing
    By Danny Bowman in forum .NET
    Replies: 152
    Last Post: 09-13-2001, 08:23 AM
  3. Another Language
    By Steven Bell in forum .NET
    Replies: 260
    Last Post: 06-01-2001, 05:32 PM
  4. Good Editorial by Russell Jones
    By Robert G in forum .NET
    Replies: 84
    Last Post: 02-08-2001, 03:38 PM
  5. Activating screen saver in via code
    By Darren in forum VB Classic
    Replies: 0
    Last Post: 07-24-2000, 07:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center