Reading Word attachments (with Rich Text Format) in Mail

I have difficulty opening "Word email attachments" that contain "Rich Text Format" using my ipod touch under the MAIL function. For normal Word documents, I have no issue at all. Can anyone help here? Thank you.

RTF contains alot of extra formatting junk that you need to be aware of, depends what you want to do with the files afte reading them in but JAVA has its own RTF parser standard. Be warned its not full proof.....
import java.io.*;
import java.util.StringTokenizer;
import javax.swing.text.rtf.RTFEditorKit;
import javax.swing.text.Document; 
  try {
      FileInputStream stream = new FileInputStream("C:/Document.rtf");
      RTFEditorKit kit = new RTFEditorKit();
      Document doc = kit.createDefaultDocument();
      kit.read(stream, doc, 0);
      String plainText = doc.getText(0, doc.getLength());
      BufferedReader br = new BufferedReader(new StringReader(plainText));
      String line = br.readLine();
      while (line != null) {
        StringTokenizer tok = new StringTokenizer(line, " ");
        while (tok.hasMoreTokens()) {
          System.out.print(tok.nextToken() + " ");
        System.out.println();
        line = br.readLine();
    } catch (Exception ex) {}

Similar Messages

  • Mail in Lion cannot save attachments in rich text format

    I used to be able to save attachments in Mail with Snow Leopard if the "Include Attachments" option is selected and the mail is saved in rich text firmat. When I open the saved files using TextEdit, the attachments are included. However, I just discovered it is no longer the case with Lion, even with the "Include Attachments" option being selected. No attachments are saved with the text. Appreciate any enlightening suggestions. Thanks.

    I share your problem........desperate to find a solution!

  • Changing text size in form field (rich text formatting enabled)

    Hi all,
    I'm hoping someone can help me out here. I've created an interactive PDF with form fields with "Rich Text Formatting" enabled.
    My client has filled in the fields and would like to make the text bigger. When right-click, there are only options to change the text style (bold, italics etc) but nothing to change the text size. I'm not keen on disabling and then re-enabling the "Rich Text Formatting" options as the text have been formatted (bold, italics, superscript, subscript etc) and approved, and this will remove all the existing formatting.
    Can anyone help?
    Acrobat 9.4.6
    Mac 10.6.8
    Cheers,
    Tricia

    Thanks so much!! Really appreciated!
    Strangely enough, I found the Form Field Text Properties dialogue box by randomly choosing "Hyperlink" in the right-click options. Who would have thought!

  • Default file associations and RTF (rich text format)

    I use pop3 email accounts for work.
    I receive daily emails with .rtf (rich text format) file attachments.
    When I open the emails, the attachments are listed.
    I touch to open and QuickOffice loads to open them.
    According to the QuickOffice website, QuickOffice does not support rtf files.. and it certainly does error on them. Why does QuickOffice open at all? I do not need any of its functions except the one it doesn’t have.
    I have installed at present, this list of file managers.
    Android’s default file manager
    OI File Manager
    Astro file manager
    Cool reader
    All of these applications support rtf files.
    How do I set the file association for rtf files to an application which supports them?
    Thanks for reading.

    I have the same problem any help would be appreciated

  • Word 2010 Copy Rich Text Content Control

    I am working on a Word 2010 template that links to another word document to copy information from Rich Text Content Controls.  I am able to copy values between RTF controls but losing the rich text formatting - only text is copied over.
    Any Suggestions on how to copy between rich text controls and still preserve the formatting?
      Set sourceCCs = sourceDoc.SelectContentControlsByTag(sourceCCTag)
        If Not (IsNull(sourceCCs)) Then
            For Each sourceCC In sourceCCs
                Set editCCs = editDoc.SelectContentControlsByTag(editCCTag)
                If Not (IsNull(editCCs)) Then
                    For Each editCC In editCCs
                        If appendText Then
                            'editCC.Range.Text = editCC.Range.Text & vbCrLf & sourceCC.Range.Text
                            editCC.Range = editCC.Range & vbCrLf & sourceCC.Range
                        Else
                            'editCC.Range.Text = sourceCC.Range.Text
                            editCC.Range = sourceCC.Range
                        End If
                    Next
                End If
            Next
        End If
    Thanks in advance

    Try something along the lines of:
      Set sourceCCs = sourceDoc.SelectContentControlsByTag(sourceCCTag)
      If Not (IsNull(sourceCCs)) Then
        For Each sourceCC In sourceCCs
          Set editCCs = editDoc.SelectContentControlsByTag(editCCTag)
          If Not (IsNull(editCCs)) Then
            For Each editCC In editCCs
              With editCC.Range
                If appendText Then
                  .InsertAfter vbCr
                  .Collapse wdCollapseEnd
                End If
                .FormattedText = sourceCC.Range.FormattedText
              End With
            Next
          End If
        Next
      End If
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • Forms calling a rich text format (.rtf) file

    Good day!
    Suppose I made up a report from oracle forms then used the options 'generate to file' > XML.
    Uses Microsoft Word 2010 with an add-ins 'Oracle BI Publisher' and make designs in my report then save it to .rtf (Rich Text Format).
    My question is how can I call my reports and display it using oracle forms?

    RTF files must be feeded by XML.
    Your answer is not just that simple. Besides, I've search for it already.
    Maybe my question to you is, is that possible?

  • How to create reports of rich text format usuing oracle pl/sql - urgent

    I want to generate reports of the format rich text format usuing pl/sql,So can any one help me out on this...

    946903 wrote:
    I want to generate reports of the format rich text format usuing pl/sql,So can any one help me out on this...There is no "urgent" here.
    "Urgent" means one of two things -
    1) people are dying, or
    2) you have a customer-facing, revenue-producing production system that is down.
    (And to get some perspective on the second case, keep the first in mind.)
    For the first, you call whatever civil emergency service seems appropriate.
    For the second, you open an SR with Oracle - which requires a paid-up support contract. For them to consider your problem "urgent", you will need to demonstrate that your problem falls under item #2. I seriously doubt your problem fits that criteria.

  • HT5815 10.8.5: no fix for Mail failure to save attachments in rich text

    How hard is it to do 14 months after ML launched? The fault even goes back to Lion I believe. Pathetic. This discussion refers: https://discussions.apple.com/message/22797910#22797910. I bet the battery level indicator isn't fixed either.

    It is always best not to wait 14 months, or any length of time, before asking a question. I have no problem saving attachments in rich text from Mail. And I haven't even updated my machine to 10.8.5 yet.
    I also don't know what is wrong with the battery level indicator.
    This is a user-to-user support forum. Many of those users are flat out wrong. I'm sorry if you have been led to believe there is some bug with saving e-mail or battery icons and waited 14 months for a bugs fix that never arrived. I suggest starting start from the beginning and describe the problems you are experiencing.

  • BI Publisher Rich Text formatted output

    Dear All,
    we are using BIP11g and we want show Rich Text formatted values in PDf output.
    this Rich Text formatted data is  stored in oracle database in CLOB data type feild.
    Here is how it looks.
    {\rtf1\ansi\ansicpg1252\uc0\deff0{\fonttbl
    {\f0\fswiss\fcharset0\fprq2 Arial;}
    {\f1\froman\fcharset2\fprq2 Symbol;}}
    {\colortbl;\red0\green0\blue0;\red255\green255\blue255;\red192\green0\blue0;}
    {\stylesheet{\s0\f0\fs24 [Normal];}{\*\cs10\additive Default Paragraph Font;}}
    {\*\generator TX_RTF32 9.0.311.500;}
    \deftab1134\paperw12240\paperh32767\margl1440\margt1440\margr1440\margb1440\pard\plain\f0\fs20 First name, Last Name [Dec 27 2013 : 03:21:49 PM]\line\line\plain\f0\fs20\b This is a Rich  text \plain\f0\fs20\line\line\plain\f0\fs20\cf3 This is a Rich  text \plain\f0\fs20\line\line\plain\f0\fs20\i This is a Rich  text \plain\f0\fs20\line\line\plain\f0\fs20\ul This is a Rich  text \plain\f0\fs20\line\line\plain\f0\fs36 This is a Rich text \plain\f0\fs20\par\pard\par }
    However actually this is a formatted text and looks like something like below
    This is a Rich  text
    This is a Rich  text
    This is a Rich  text
    This is a Rich  text
    This is a Rich  text
    Currently BIP PDF output produce the text as is from the database.
    How can i convert or process it to get the correct formatted text like above in output.
    Thanks,

    Follow the process outlined in this blog post: https://blogs.oracle.com/xmlpublisher/entry/formatting_html_with_templates
    With Oracle BI Publisher 11g Release 1 (11.1.1.6) release you have support for HTML formatting in data..
    Here is an excerpt from the report designer's guide.
    Support for HTML Formatting in Data
    You can now convert stored XHTML to XSL-FO to display the HTML formatting from your data in your generated report. The XHTML data must be extracted wrapped in a CDATA section. Specific syntax must also be used in the RTF template to render it.
    Thanks,
    Bipuser

  • How to import xfa(XML Forms Architecture) to indesign without losing rich text format.

    Hello All,
    i created pdf form in livecycle.i am populating this pdf form and submit.when i am submiting form ,i will get the data in xfa(xml forms architecture).now i want to import this xml to indesign.when i importing this xml to indesign,it imported without rich text format.this means in indesign formate is not preserved when importing xfa(xml forms architecture).
    how to import xfa(XML Forms Architecture) to indesign without losing rich text format.
    please help me,its urgent.
    thanks
    Humayoo

    I really have no idea what kind of file that is and how is the structure, but if it´s valid XML, I guess you could use InDesigns Tags to Styles mapping engine to format incoming stuff....

  • Can java write greek characters to an RTF (Rich Text Format) File???

    Can java write greek characters to an RTF (Rich Text Format) File???

    As far as I'm aware, java can put text in any font to an RTF file as long as that font is available on your machine.

  • Using Rich Text Formatting Tools for Email Message Text Box in  Webdynpro.

    Hi All,
    I would like to know whether WebDynpro provides a feature of including the Rich Text Formatting Tools (like Font, FontSize, Spell check .....) inside a Text Box.
    I need to allow the user to format/indent text inside the Email message box, before sending the Email.
    Is ABAP/Java Webdynpro providing us the above feature currently?
    Thanks for your time.
    Regards,
    Madhavi.

    Hi Armin,
    Thanks for your quick reply. Are there any release dates for when NWDS 7.1 be available?
    Thanks,
    Madhavi

  • When I forward or reply to the email from Mail, the receiver gets it as multiple attachments with no content in the mail., When I forward or reply to the email from Mail, the receiver gets it as multiple attachments with no content in the mail.

    When I forward or reply to the email from Mail, the receiver gets it as multiple attachments with no content in the mail., When I forward or reply to the email from Mail, the receiver gets it as multiple attachments with no content in the mail.

    That's probably because the message is in HTML format. Send the reply as plain text.

  • How to send a mail with rich text content like using outlook

    Hi All. I have a serious problem. When we send the mail from
    outlook express or yahoo, we can send the mail with the text appearing
    in the mail with bold font , with different colors, underlined etc.
    If i type this kind of text in any word processor and mail that content through java mail then the message should be received by the recepient with all that bold,color and underlines etc as it is. Can anybody please help me in this case ASAP.

    Go to this site and download the htmlArea Javascripts. Embedd them in your HTML and it will turn your normal HTML Text Area into Rich Text Area. Your real code will include all HTML tags. For example if you select some text and make it bold , the real HTML output will look like <B>YOUR TEXT </B>. So i guess your recipient should be able to receive HTML contents.
    http://www.interactivetools.com/products/htmlarea/

  • How to Output Rich Text Format.

    Hi everyone, i use a rich text editor called tiny mce in my web application. After i click the submit button the value inside the text area would be saved in my database including the HTML tags e.g. <i>Sample Report edited via Tiny MCE Rich Text Editor<i>. I need to output the text in a webuijsf static text component but the moment i see the output the tags are still there and the text is not in italics format. Does anyone know how to output it in static text with the design in it?

    It is not updated for more than 1 years and it is dropped by Sun and users were recommended to migrate to ICEfaces.
    [http://woodstock.dev.java.net]
    The Woodstock release 4.2 is the last official version of Woodstock that Sun will release. Sun will continue to support its customers that have built on top of Woodstock 4.2. The Project Woodstock code is still available, and community members can still create new features or enhancements. For future development or migration of existing Woodstock projects, Sun is officially endorsing ICEfaces as the replacement technology for Woodstock. Also see [http://www.nabble.com/Woodstock-Migration-Path-to-ICEfaces-td21057513.html], although I would recommend RichFaces above that. It is only that it doesn't have a drag'n'drop palette for Netbeans, so it is not reachable for blind visual developers.

Maybe you are looking for