Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capture Screen Routine
Message
From
11/06/2001 13:40:13
Linda Morgan
Garden City Community College
Garden City, Kansas, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Title:
Capture Screen Routine
Miscellaneous
Thread ID:
00517930
Message ID:
00517930
Views:
50
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
Map
View

Click here to load this message in the networking platform