New topic: style text save as rtf question
<http://forums.realsoftware.com/viewtopic.php?t=37936> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message coryhefner Post subject: style text save as rtf questionPosted: Thu Mar 03, 2011 8:31 pm Joined: Thu Dec 10, 2009 2:00 pm Posts: 71 Location: Calafornia I am trying to create on rtf document on the open event of an application. but am getting confuse on how to approach. I am doing edit checks on folderitems and creating the location when needed an my next check was for a default documentintoin. if it does not exists I want to create it each and every time the application is run. BUT I do not ko whow to create the rtf file with out going through text are control item. I want to save a preformated text item directly to the subfolder. (I know how to create the item and display in textarea) My question is how do I by pass the text area control items and just create the text document with out going through the control? All the documentation shows displaying to a text area first and then save from text area to a folder item. thanks Top timhare Post subject: Re: style text save as rtf questionPosted: Fri Mar 04, 2011 2:38 am Joined: Fri Jan 06, 2006 3:21 pm Posts: 9381 Location: Portland, OR USA You can create a StyledText object independent of any TextArea control. Build up the styled text by appending StyleRun objects to the StyledText. Alternately, you could include a premade RTF file in your project and write that out when you need to. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- 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]
