General information
Category:
Pictures and Image processing
Title:
Capture Screen Routine
I am trying to add a 'print screen' button to forms. I found a program (somewhere in UT or ?) that works well and does basically the following
1. sets up environment
2. Calls API32 function
3. creates cursor table with 1 general field
4. copies screen (Alt-Prtscrn)
5. Pastes image into general field
6. uses report.frx to print the general field
7. Closes procedure
*The program works fine (including the print routine) if I append general from an already existing .bmp file
but I get the error message 'OLE error code 0x80040140: Error drawing view' when I try to print the 'pasted' image.
I'm assuming that the file format is somehow different. I tried to export the file to a .bmp file (which it did fine) and import it again, however, I got the same error.
Is there something I need to do to put the image into a format that the report can print?
Thanks in advance.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only