Return-Path: X-Original-To: apmail-poi-user-archive@www.apache.org Delivered-To: apmail-poi-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 447B4930E for ; Wed, 21 Mar 2012 15:14:14 +0000 (UTC) Received: (qmail 11998 invoked by uid 500); 21 Mar 2012 15:14:09 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 11956 invoked by uid 500); 21 Mar 2012 15:14:09 -0000 Mailing-List: contact user-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Users List" Delivered-To: mailing list user@poi.apache.org Received: (qmail 11873 invoked by uid 99); 21 Mar 2012 15:14:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2012 15:14:09 +0000 X-ASF-Spam-Status: No, hits=3.4 required=5.0 tests=FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,URI_HEX X-Spam-Check-By: apache.org Received-SPF: unknown (nike.apache.org: error in processing during lookup of markbrdsly@tiscali.co.uk) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2012 15:14:03 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SANEM-0007ij-Jy for user@poi.apache.org; Wed, 21 Mar 2012 08:13:42 -0700 Date: Wed, 21 Mar 2012 08:13:42 -0700 (PDT) From: Mark Beardsley To: user@poi.apache.org Message-ID: <1332342822612-5583202.post@n5.nabble.com> In-Reply-To: References: Subject: RE: How to insert existing RTF string into Excel cell MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org You cannot use HTML either. When you are using Excel itself, you can copy and paste HTML into a cell and Excel will interpret the mark-up; but this is Excel the application doing the work for you. With POI, you are working directly with the raw file and do not have the 'Excel layer' so to speak to help. Have you thought about using a pre-existing parser to interpret the RTF/HTML markup and use it to tell you what you should do with POI? IText is the obvious candidate where RTF is concerned. I know it will work with RTF documents, fragments I am not so sure about but it would be worthwhile trying. Whether there is something similar for HTML, I cannot say. My only experiences with parsing HTML using Java have made use of the languages in-built parsing capabilities. -- View this message in context: http://apache-poi.1045710.n5.nabble.com/How-to-insert-existing-RTF-string-into-Excel-cell-tp5581680p5583202.html Sent from the POI - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional commands, e-mail: user-help@poi.apache.org