Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
SRP Save Screenshot bmp file corrupted
I haven't had any success in using the SRP_Save_Screenshot subroutine. It will save a bmp file, but when I attempt to open it in any image software (Paint, Photoshop, Windows Photo Viewer, etc.) it brings a message that the file is corrupt, or fails. When I set the OLE.Image property of the SRP Picture Control to the file that is saved by the subroutine, it shows the image, but it is distorted. Any thoughts?
Comments
While attempting to use SRP_Save_Screenshot utility and OIPI preview window, I can't seem to get the image to come out either.
I'm doing the following:
oFile = "C:\temp\srpu.bmp"
SRP_Save_Screenshot(@WINDOW,oFile,0)
Stat = Set_Printer("INIT","","","","",2)
Stat = Set_Printer("BMP",oFile)
Stat = Set_Printer("TERM")
I verified that the image (or something) is being created and saved to C:\temp and has data (1071 Kb).
However trying to view it through MSPaint gives me the same error "Prattspets" was getting.
The OIPI Preview looks like this... I'm using OI 9.4 and am RDP'd into a WS 2008r2 64bit server. Thanks.
I determined that I received the file error you are experiencing when I would use RDP with my display settings lower than "Highest Quality (32 bit)". Once I set the display settings to the "Highest Quality" the screenshots would be saved correctly (without corruption). Hope you can find the same results.
However, I don't seem to have the options or ability to change display setting to Highest Quality.