New topic: RTFData independent of TextArea
<http://forums.realsoftware.com/viewtopic.php?t=46338> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message mpastor Post subject: RTFData independent of TextAreaPosted: Mon Dec 24, 2012 10:20 am Joined: Sat Oct 18, 2008 4:58 pm Posts: 116 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 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
