exporting images in RTF from runrev

runrev at animabit.de runrev at animabit.de
Tue Nov 25 03:32:00 EST 2008


Hello,

rtf seems to be a dead end when you look to the new xml docx and openoffice formats, but of course will live longer than expectable. 
As posted some weeks ago under the title "function  binaryDecode within a function ..." - the following script does basic image export in rtf:

function image2rtf objektname
export image objektname of group "inhalt" to bilddaten as JPEG
-- for testing: export image 1 to bilddaten as JPEG
get binaryDecode("H*",bilddaten,timage) 
put "{\rtf{\pict\jpegblip\picwgoal874\pichgoal1121 " & cr into header
put cr & "}" & cr & "}" into footer
put header & timage & footer into rtf
put rtf into URL "binfile:c:/rtftest.rtf" -- this works fine
return rtf -- this only works with small jpgs, do not know why
end image2rtf 

Some users could not confirm my problems with bigger jpegs in return.


P.S. I have very good results with exporting to HTML and opening in Word 2007. You must give the width and height of images in the html-Text for word to set the right rectangle - but thats the same in rtf. 
Regards,

Franz Böhmisch


Original Message        processed by David InfoCenter 
Subject: Re: Jan Schenkel's merge tutorials (24-Nov-2008 14:51)
From:    Phil Jimmieson <phil at liverpool.ac.uk>
To:      boehmisch at animabit.de



On 21 Nov 2008, at 18:16, J. Landman Gay wrote:

> Peter Alcibiades wrote:
>> Jan, many thanks - great tutorials, very illuminating.
>
> I have to agree, I was thunderstruck. Jan, a Word export would be 
> perfect for my current project, but I need to know how to 
> incorporate images into the rtf file. Do you know how, or do I have 
> to do my own research? Would sure appreciate any tips you may have.


I'd love to be able to export reports as Word-compatible RTF - 
complete with images. I've requested that feature in the quality centre:

http://quality.runrev.com/qacenter/show_bug.cgi?id=4231

The ideal would be if Rev could save the images as RTF directly, 
alternatively, if the RTFText could at least contain a reference or 
comment to say that an image is present, that would be useful (then 
I'd have to roll my own image to RTF code). At the moment, there's no 
sign in the RTF at all that there are images in the field.

--
Phil Jimmieson phil at liverpool.ac.uk (UK) 0151 795 4236
Computer Science Dept., Liverpool University, Ashton Building, Ashton 
Street
Liverpool L69 3BX http://www.csc.liv.ac.uk/~phil/
I used to sit on a special medical board... ...but now I use this 
ointment.




_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

To: use-revolution at lists.runrev.com


More information about the use-livecode mailing list