Hi Kim,

because you told us in a later post you are using Mac OS X, I can say that your 
example is incorrect.

Only REALbasic on Windows allows you to Read and Write RTF - that is since the 
first REALbasic for Windows (compilation). It is an "OS Platform Automatic 
Service".

The code you share works that way on Windows.

Back to Mac OS X: the provided code save the styled data in the Mac OS X 
"official" style format, but do not generate RTF at all.

Now for the RTFData - RB 2007-r2 - addition: it have been officially stated 
that the open is buggy and corrected in 2007r3a.

I am not in the Beta, so I cannot tell you more on what was corrected in a3.

I only hope that the responsible engineer make intensive debugging (on all 
three platforms (Mac OS X, Windows and Linux).

Why ?
Because I found bugs in the way the styles are used (that are there before the 
RTFData addition).

In fact, I will extend my plan (be able to use REALbasic 2007 after r2) only 
when I will be able to use my project with styles under the three platforms.


BTW: I also found bugs in the Windows implementation of RTFData... etc.


Sadly,

Emile

PS: I was not able to get an internet location to use with my PowerBook in the  
previous five days, and so writing bug reports is actually not possible for me.


>Date: Wed, 18 Apr 2007 18:49:45 +1000
>From: Kim Kohen <[EMAIL PROTECTED]>
>Subject: RTF
>To: RealBasic NUG <[email protected]>
>
>folks,
>
>I realise there's been some criticism of the new RTF feature in  
>reading files from other applications. I've been trying to get it to  
>save RTF and then read that RTF file properly without success. It  
>appears the font and alignment information is ignored during the read/ 
>display of the RTF.
>
>I'm using the RB example code to write the RTF and then the following  
>to read it:
>
>   Dim t as TextInputStream
>   Dim f as FolderItem
>   f=GetFolderItem("TestSaveRTF")
>   t=f.OpenAsTextFile
>   EditField2.StyledText.RTFData=t.ReadAll
>   t.Close
>
>It reads fine and loads most of the styles - the exception being the  
>fonts and alignment. I'm wondering if this is a bug, a missing  
>feature or if I'm doing something wrong.  Can anyone confirm this  
>behaviour and let me know if it's expected?

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to