Information générale
Catégorie:
Photos et traitement d'images
Titre:
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.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement