keeping tabstops intact when exporting an rtf?
BNig
bernd.niggemann at uni-wh.de
Thu Feb 6 18:36:44 EST 2014
Hi Malte,
in a very short test on a Mac exporting rtfText of a field into a file tabs
were seen by TextEdit, but not by Word 2008 for Mac, they were displayed as
underscores.
When exporting the same 2 line 6 word text from TextEdit as formatted text
Word could read it. The only difference I found was that LiveCode uses \'09
for tabs and TextEdit used an acutal tab.
Replacing \'09 with tab in rtfText resulted in a Word-readable file
content of field 1:
apple pears oranges
one two three
-------------
on mouseUp
put the rtfText of field 1 into tData
replace "\'09" with tab in tData
put specialFolderPath("desktop") & "/" & "rtfTest.rtf" into tPath
put tData into url ("file:" & tPath)
end mouseUp
---------------
I am not claiming this solves all problems but for this very simple example
it worked.
Kind regards
Bernd
--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/keeping-tabstops-intact-when-exporting-an-rtf-tp4675539p4675543.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode
mailing list