We Recommend

HTML: The Definitive Guide HTML: The Definitive Guide
They teach you that learning HTML is like learning any other language and that reading a book of rules can only take you so far. Readers begin writing what may be their first Web page just two pages into the book's second chapter. From there on, they provide a wide range of HTML coding to allow readers to learn from good examples. The book includes a handy "cheat sheet" of HTML codes for quick reference.


Posted By

RichardRoe on 02/08/07


Tagged

print imagecontrol HInfoMemo iPrintImage


Versions (?)


Extracting and printing an image from an image control


Published in: Other 


This is code from Stefan Bentvelsen given in a 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.