Return to Snippet

Revision: 2406
at February 8, 2007 15:15 by RichardRoe


Initial Code
you can extract the original file name as follows:

sHlp=HInfoMemo(MyFile,element)
lsFilename=ExtractString(sHlp,2)

But I use the following code to print an image direct from a binary memo:

sHlp is string

sHlp=HInfoMemo(MyFile,element) // where element is the memofield
IF ExtractString(sHlp,1)="IMG" THEN
...iPrintImage(MyFile.element,0,iYPos(),iPageWidth(),iPageHeight(),0)
END

Initial URL


Initial Description
Received this code snippet from Stefan Bentvelsen in a WinDev forum posting

Initial Title
Retrieving image properties from an image memo file item and printing it from an image control

Initial Tags


Initial Language
W-Language