Printing a .rtf (Rich-Text Format) File.
Posted: Thu Oct 16, 2014 9:57 am
Is it possible to print an .rtf file with livecode?
Many Thanks,
Matthew.
Many Thanks,
Matthew.
Questions and answers about the LiveCode platform.
https://www.forums.livecode.com/
Code: Select all
on mouseUp
put "/Users/admin/Documents/Bittelesen.rtf" into myUrl
If there is no fld "rtf2html" then create fld "rtf2html"
-- hide fld "rtf2html"
set rtftext of fld "rtf2html" to url ("file:"&myUrl)
-- stop here if you wish to edit the imported text
wait 10 millisecs with messages
-- revShowPrintDialog true,true -- shows pageSetup and printDialog
revShowPrintDialog false,true -- shows only printDialog
-- in the second dialog you can choose "print to PDF" of your OS # <--
revPrintText the htmltext of fld "rtf2html"
end mouseUp