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 B1C8618E68 for ; Thu, 22 Oct 2015 13:40:46 +0000 (UTC) Received: (qmail 49397 invoked by uid 500); 22 Oct 2015 13:40:46 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 49369 invoked by uid 500); 22 Oct 2015 13:40:46 -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 49351 invoked by uid 99); 22 Oct 2015 13:40:45 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Oct 2015 13:40:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 8C5461A24D6 for ; Thu, 22 Oct 2015 13:40:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.899 X-Spam-Level: ** X-Spam-Status: No, score=2.899 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id l7pZY5zXAolY for ; Thu, 22 Oct 2015 13:40:38 +0000 (UTC) Received: from mail-qg0-f53.google.com (mail-qg0-f53.google.com [209.85.192.53]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 4E7E120750 for ; Thu, 22 Oct 2015 13:40:38 +0000 (UTC) Received: by qgad10 with SMTP id d10so56120456qga.3 for ; Thu, 22 Oct 2015 06:40:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=YQdCFmT4qSvyeqWirkhw/ywJfCJR7yzzpyp8J3gP8zU=; b=o5AcsU2DD19ZGs98Wzz0F5ew4Q2LDyRi4sX+w5X3TFP0EBvo2Cq/8IThDM9xuj+H9N bg76qzXxbUHrHSR5bHxjge2Q3reZLAkmeF2LkunlsUda9L011ySAKgTPZZchVZDgb4br FnijAGawZlH+HyW4ROmFxTvk2whXgHZzLlfcSIEkMaGysaeG9qgZuuDWXQ4KBqDXMBmh qe+X4uRFvi7SjYECQfsfCJ95C0LSN68ZCrFqfU1HfBR078eOE1BDgpRoA7ZLBGca/MhF 8Exj98H/C2sSoXvFxEmXujTAMz5jx0UOkrPGegpbxARLvO4aU6B15/LqrX3YzW3j3fjf HlKQ== X-Received: by 10.140.99.117 with SMTP id p108mr18173132qge.91.1445521237166; Thu, 22 Oct 2015 06:40:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.91.18 with HTTP; Thu, 22 Oct 2015 06:40:17 -0700 (PDT) In-Reply-To: References: From: "Sam'" Date: Thu, 22 Oct 2015 15:40:17 +0200 Message-ID: Subject: Re: POI XSSF and ClipBoard issue To: POI Users List Content-Type: multipart/alternative; boundary=001a113ad88adb4f730522b1a38f --001a113ad88adb4f730522b1a38f Content-Type: text/plain; charset=UTF-8 Hi, I'm sorry if I'm not clear enough. Yes the attachment is in XSSF format. I produced the file without POI. That means I opened Excel on my computer, then fill the cell and add a comment and saved it. Then I opened it again, clicked on the first cell and did a copy of it. Then after, I do a "paste" in my Java application and I'm trying to decode what's in it, and give it to POI. So technically, I am not providing a full spreadsheet file. Simply extracting what Excel has put into the clipboard. And apparently something was put in it into a Biff8 format. And that "something" was ok for POI. Now that if I'm extracting from the clipboard the "XML Spreadsheet" content and I give it to POI, it's not working. But maybe the cause is that : what is inside the clipboard is not a fully constructed content and POI doesn't recognize that as an Excel file. I hope that it's clearer for you.. I can provide you some simple test applications to run if you want to play around the copy/paste content. I have the feeling that people are using POI in order to construct or read files, but not many have tried to use it with the Clipboard. Regards, 2015-10-22 15:31 GMT+02:00 Dominik Stadler : > Hi, > > I am still confused because the attachment you provided is in XSSF > format, how did you produce this out of the Clipboard-Data when you > state that you work with .xls/Biff8/HSSF formatted data? > > POI can read XSSF and HSSF just fine and as long as the data is a full > spreadsheet file, it should not matter where it comes from, so you can > try the "XML Spreadsheet" format listed. > > Dominik. > > On Thu, Oct 22, 2015 at 10:18 AM, Sam' wrote: > > Hi guys, > > > > I initially opened this bug ( > > https://bz.apache.org/bugzilla/show_bug.cgi?id=58510) but apparently the > > user list suits better. > > > > What I want is to be able to read the content of the system clipboard > > (after someone copied something from Excel). I was doing that with POI > > (HSSF). I was finding the "Biff8" format inside the clipboard (among > > others) and giving it to POI and everything was fine. > > > > Apparently the Biff8 format is for Excel 97-2007. So my question is, is > it > > still possible to use POI for reading clipboard out of newer version of > > Excel? Has anyone attempted that? > > > > I know you people are used to open files directly with POI so my needs > are > > a bit different. Here is a list Formats available when copying (XML > > Spreadsheet, text/rtf, cf5, cf4,cf129, Biff5 , Biff12, text/plain, > > Link,text/html, Biff8, Object Descriptor, Csv, Link Source Descriptor). > > > > Thank you, > > Sam' > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@poi.apache.org > For additional commands, e-mail: user-help@poi.apache.org > > --001a113ad88adb4f730522b1a38f--