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
|