We Recommend

Essential ActionScript 3.0 Essential ActionScript 3.0
The book focuses on the core language and object-oriented programming, but also adds a deep look at the centerpiece of Flash Player's new API: display programming. Enjoy hundreds of brand new pages covering exciting new language features, such as the DOM-based event architecture, E4X, and namespaces--all brimming with real-world sample code.


Posted By

RichardRoe on 02/08/07


Tagged

HInfoMemo iPrintImage


Versions (?)


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


Published in: W-Language 


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


  1. you can extract the original file name as follows:
  2.  
  3. sHlp=HInfoMemo(MyFile,element)
  4. lsFilename=ExtractString(sHlp,2)
  5.  
  6. But I use the following code to print an image direct from a binary memo:
  7.  
  8. sHlp is string
  9.  
  10. sHlp=HInfoMemo(MyFile,element) // where element is the memofield
  11. IF ExtractString(sHlp,1)="IMG" THEN
  12. ...iPrintImage(MyFile.element,0,iYPos(),iPageWidth(),iPageHeight(),0)
  13. END

Report this snippet 

You need to login to post a comment.