Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Jun 22, 2018 4:45 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: RTFData independent of TextArea
PostPosted: Mon Dec 24, 2012 10:20 am 
Offline

Joined: Sat Oct 18, 2008 4:58 pm
Posts: 135
I want to generate a file on the WebServer that captures text from a WebListBox, formats it behind the scenes, and writes the data in RTF format. Then I can present this as a link for the user to download.

I am sure I do not understand working with RTF well enough. I am creating a StyledText object and trying to leverage it as the base object for writing the RTF data - but I think I am missing something.

I have also attempted the memory block approach - but let's have this discussion first before I start that conversation.

Dim t As New StyledText
t.Text = WebList.Cell(0,0)
t.TextColor(5, 30) = &cFF0000 //attempt at including some RTF extensions

Dim f as New FolderItem
f = SpecialFolder.Desktop.Child("Test.rtf")

If f <> nil then
Dim s as TextOutputStream
s = TextOutputStream.Create(f)
s.Write t.RTFData // <---------- this is where the error occurs
s = nil
End if


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group