Hello Klaus!
Thank you but I'm sorry, I don't understand.
With this code: -------------- put cheminresultat &fichieracreer into fichierexport
set the fileType to "ttxtRTF " -- text file owned by SimpleText app
open file fichierexport for text update
write THE RTFTEXT OF FLD "POUREXPORT" of card 2 of stack"cukydata" to file fichierexport at "EOF"
close file fichierexport -----------------
I have an RTF file in my finder, but when I open it, the bold and the font is not saved.
Bouhouhou.......
Le 19 oct. 04, à 12:20, Klaus Major a écrit :
Bon jour François,
Hello everybody!
I want to export a fld (pourexport) into an RTF file (to save the style and the font)
I have this code
put cheminresultat &fichieràcréer into fichierexport
open file fichierexport for text update
write THE RTFTEXT OF FLD "POUREXPORT" of card 2 of stack"cukydata" to file fichierexport at "EOF"
close file fichierexport
And my file is always TXT file.
Why please?
I suppose you are working on a mac? Right :-)
If you write something to a file the resulting file will always have TEXT as the -> filetype,
UNLESS you set the filetype BEFORE you are writing that file...
Please remember, ONLY the filetype is TEXT, but the content of the file is actually RTF-code!
Read: the file only LOOKS liek a text-file to the finder! But we developers cannot be fooled this easy ;-)
As long as noone tries to DOUBLECLICK the file in the finder, no need to worry :-)
Thank you for your answer.
Friendly François
Au revoir, mon ami...
Klaus Major [EMAIL PROTECTED] http://www.major-k.de
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
------------------ François Cuneo Cuk.ch http://www.cuk.ch Site web dédié au Macintosh [EMAIL PROTECTED]
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution