[flexcoders] Re: RTF vs RTE
Over the weekend I too created a component that creates excel 2003 xml from a datagrid. I really don't want to write a component that will convert RTE to RTF, or XML. I was hoping there was something out there that already did that. If anyone knows of something, that would be great. Paul --- In flexcoders@yahoogroups.com, Randy Martin [EMAIL PROTECTED] wrote: Why not write Word XML directly? I write Excel XML directly from several apps, and create spreadsheets with merged columns, subtotals, totals, formulas, etc. directly with XML. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Sunday, March 02, 2008 10:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: RTF vs RTE --- In HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], aceoohay pauls@ wrote: Amy: Thanks for the post. No, actually I will be doing this in flex, not AIR. What I would like to do is to have a mini word processor that a user can edit and save RTF type files. I will define a tag such as [fieldName]- or the like where the user can specify fields that are in the db. To do the merge I will take the RTF file with tags, and process it on the backend and feed it back to a new window with application/-word metatag and viola word pops up with the document ready to print. At least that's how it should work in theory. Probably not what you want to hear, but you could probably do something like this: HYPERLINK http://support.microsoft.com/default.aspx?scid=kb%3bEN-US% 3b270906http://s upport.-microsoft.-com/default.-aspx?scid=-kb%3bEN-US%-3b270906 This article HYPERLINK http://en.wikipedia.org/wiki/Rich_Text_Formathttp://en.wikipedia- .org/wiki /-Rich_Text_-Format has links at the bottom that point to some server-side RTF writing tools. HTH; Amy No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.21.3/1306 - Release Date: 3/1/2008 5:41 PM
[flexcoders] Re: RTF vs RTE
--- In flexcoders@yahoogroups.com, aceoohay [EMAIL PROTECTED] wrote: I want to create a Rich Text Format (RTF) editor in flex, is it doable? I was initially excited about the RTE component until I realized that the output is html. Has anyone created either an RTF component, or a reliable translation class from html to RTF? My end goal is to create a mail merge component where the users will be able to create a document with tags that can be replaced with fields from a DB. Once merged I want to send it to a word processor such as word for rendering to the printer. I've been pondering this myself. Keep in mind I know more about Word than Flex. I'm assuming you want to do this from AIR, since I doubt you'll be able to send to Word from a browser based Flex swf. What I would do would be to set up a template word dot that has fields that are set up to be dynamically populated. I'd set up this dot to read from a data source you created in AIR, either directly from a sqlLite database or something like a comma-delimited text file on launch (AutoExec). Then, once the data source is set up correctly, launch your .dot, it sucks in the data source and then either prints automatically or pops up a word form that allows further instructions. This is just a theoretical approach for me at this point, but it seems like the most likely approach, given the limits of my knowledge of Flex ;-). -Amy
[flexcoders] Re: RTF vs RTE
Amy: Thanks for the post. No, actually I will be doing this in flex, not AIR. What I would like to do is to have a mini word processor that a user can edit and save RTF type files. I will define a tag such as [fieldName] or the like where the user can specify fields that are in the db. To do the merge I will take the RTF file with tags, and process it on the backend and feed it back to a new window with application/word metatag and viola word pops up with the document ready to print. At least that's how it should work in theory. Paul --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, aceoohay pauls@ wrote: I want to create a Rich Text Format (RTF) editor in flex, is it doable? I was initially excited about the RTE component until I realized that the output is html. Has anyone created either an RTF component, or a reliable translation class from html to RTF? My end goal is to create a mail merge component where the users will be able to create a document with tags that can be replaced with fields from a DB. Once merged I want to send it to a word processor such as word for rendering to the printer. I've been pondering this myself. Keep in mind I know more about Word than Flex. I'm assuming you want to do this from AIR, since I doubt you'll be able to send to Word from a browser based Flex swf. What I would do would be to set up a template word dot that has fields that are set up to be dynamically populated. I'd set up this dot to read from a data source you created in AIR, either directly from a sqlLite database or something like a comma-delimited text file on launch (AutoExec). Then, once the data source is set up correctly, launch your .dot, it sucks in the data source and then either prints automatically or pops up a word form that allows further instructions. This is just a theoretical approach for me at this point, but it seems like the most likely approach, given the limits of my knowledge of Flex ;-). -Amy
[flexcoders] Re: RTF vs RTE
--- In flexcoders@yahoogroups.com, aceoohay [EMAIL PROTECTED] wrote: Amy: Thanks for the post. No, actually I will be doing this in flex, not AIR. What I would like to do is to have a mini word processor that a user can edit and save RTF type files. I will define a tag such as [fieldName] or the like where the user can specify fields that are in the db. To do the merge I will take the RTF file with tags, and process it on the backend and feed it back to a new window with application/word metatag and viola word pops up with the document ready to print. At least that's how it should work in theory. Probably not what you want to hear, but you could probably do something like this: http://support.microsoft.com/default.aspx?scid=kb%3bEN-US%3b270906 This article http://en.wikipedia.org/wiki/Rich_Text_Format has links at the bottom that point to some server-side RTF writing tools. HTH; Amy
RE: [flexcoders] Re: RTF vs RTE
Why not write Word XML directly? I write Excel XML directly from several apps, and create spreadsheets with merged columns, subtotals, totals, formulas, etc. directly with XML. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Sunday, March 02, 2008 10:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: RTF vs RTE --- In HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], aceoohay [EMAIL PROTECTED] wrote: Amy: Thanks for the post. No, actually I will be doing this in flex, not AIR. What I would like to do is to have a mini word processor that a user can edit and save RTF type files. I will define a tag such as [fieldName]- or the like where the user can specify fields that are in the db. To do the merge I will take the RTF file with tags, and process it on the backend and feed it back to a new window with application/-word metatag and viola word pops up with the document ready to print. At least that's how it should work in theory. Probably not what you want to hear, but you could probably do something like this: HYPERLINK http://support.microsoft.com/default.aspx?scid=kb%3bEN-US%3b270906http://s upport.-microsoft.-com/default.-aspx?scid=-kb%3bEN-US%-3b270906 This article HYPERLINK http://en.wikipedia.org/wiki/Rich_Text_Formathttp://en.wikipedia-.org/wiki /-Rich_Text_-Format has links at the bottom that point to some server-side RTF writing tools. HTH; Amy No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.21.3/1306 - Release Date: 3/1/2008 5:41 PM