Return-Path: X-Original-To: apmail-poi-dev-archive@www.apache.org Delivered-To: apmail-poi-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ECD6B44E8 for ; Sat, 25 Jun 2011 12:36:21 +0000 (UTC) Received: (qmail 76585 invoked by uid 500); 25 Jun 2011 12:36:21 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 76568 invoked by uid 500); 25 Jun 2011 12:36:21 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 76559 invoked by uid 99); 25 Jun 2011 12:36:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Jun 2011 12:36:20 +0000 X-ASF-Spam-Status: No, hits=-1997.7 required=5.0 tests=ALL_TRUSTED,FSL_RU_URL X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Jun 2011 12:36:18 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id D9CC648D5A; Sat, 25 Jun 2011 12:35:57 +0000 (UTC) From: bugzilla@apache.org To: dev@poi.apache.org Subject: DO NOT REPLY [Bug 48256] HSSF-created formulas won't work in Microsoft Excel Viewer Date: Sat, 25 Jun 2011 12:35:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: HSSF X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yegor@dinom.ru X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Resolution Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=48256 Yegor Kozlov changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Yegor Kozlov 2011-06-25 12:35:57 UTC --- Excel Viewer displays cached formula results, i.e. the results previously calculated by Excel or OpenOffice. POI doesn't pre-calculate formulas for you, you need to manually pass your workbook to the formula evaluator. Add the following line in the end of your code and you will be good: workbook.getCreationHelper().createFormulaEvaluator().evaluateAll(); it should work for both .xls and .xlsx formats. More about evaluation of formulas: http://poi.apache.org/spreadsheet/eval.html Yegor -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org