From odf-dev-return-234-apmail-incubator-odf-dev-archive=incubator.apache.org@incubator.apache.org Fri Sep 23 06:37:40 2011 Return-Path: X-Original-To: apmail-incubator-odf-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-odf-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 88511954F for ; Fri, 23 Sep 2011 06:37:40 +0000 (UTC) Received: (qmail 26616 invoked by uid 500); 23 Sep 2011 06:37:40 -0000 Delivered-To: apmail-incubator-odf-dev-archive@incubator.apache.org Received: (qmail 26554 invoked by uid 500); 23 Sep 2011 06:37:39 -0000 Mailing-List: contact odf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: odf-dev@incubator.apache.org Delivered-To: mailing list odf-dev@incubator.apache.org Received: (qmail 26503 invoked by uid 99); 23 Sep 2011 06:37:37 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2011 06:37:37 +0000 Received: from localhost (HELO mail-qy0-f182.google.com) (127.0.0.1) (smtp-auth username devinhan, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2011 06:37:36 +0000 Received: by qyk4 with SMTP id 4so4152781qyk.6 for ; Thu, 22 Sep 2011 23:37:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.100.201 with SMTP id z9mr2419233qcn.170.1316759855552; Thu, 22 Sep 2011 23:37:35 -0700 (PDT) Received: by 10.229.27.70 with HTTP; Thu, 22 Sep 2011 23:37:35 -0700 (PDT) In-Reply-To: References: Date: Fri, 23 Sep 2011 14:37:35 +0800 Message-ID: Subject: Re: Simple API From: Devin Han To: Phill_Perryman@mitel.com Content-Type: multipart/alternative; boundary=0016364ee15c71d79e04ad960b0b --0016364ee15c71d79e04ad960b0b Content-Type: text/plain; charset=ISO-8859-1 Hi Phill, Congratulations! You are the first user who ask question after Simple API moved to Apache. But no gift ;) Please reference my comment: 2011/9/22 > > I can't seem to find any sort of support forum for the Simple API stuff. > > I have just started trying it out and put a simple bit of code in from the > tutorials > > SpreadsheetDocument doc = SpreadsheetDocument.*newSpreadsheetDocument*(); > Table table = doc.getTableList().get(0); > Row row = table.getRowByIndex(0); > row.getCellByIndex(0).setStringValue("one"); > row.getCellByIndex(1).setStringValue("two"); > doc.save("c:/temp/book.ods"); > > and it throws an error on stderr, the result actually works. Simple > .6.6/odf 0.8.7 > > 22-Sep-2011 11:48:35 org.odftoolkit.simple.style.DefaultStyleHandler > getTextPropertiesForRead > INFO: No explicit text properties definition is found! > > The help and everything make no mention of this and google was not very > helpful and there is nothing in bugzilla. > > It does not seem very simple is the first bit of code I follow from the > tuttorial throws and error. > > Could you point me in the right direction for getting some help on using > this product. > > Regards, > Phill Don't worry about this log message. It is generated by the method getTextPropertiesForRead() in org.odftoolkit.simple.style.DefaultStyleHandler. Logger.getLogger(CellStyleHandler.class.getName()).log(Level.INFO, "No explicit text properties definition is found!", ""); When cell has no text style setting, this log will be printed (maybe we should change its level to "DEBUG"). But I am sure it's doesn't mean your code doesn't work well. It's just a tip or warning. Any more question please send mail to: odf-dev@incubator.apache.org, more nice guys will help you in there. If you need to create an issue, please access: https://issues.apache.org/jira/browse/ODFTOOLKIT. In our website you can get more information: http://incubator.apache.org/odftoolkit/simple/index.html. -- -Devin --0016364ee15c71d79e04ad960b0b--