Return-Path: Delivered-To: apmail-jakarta-poi-user-archive@www.apache.org Received: (qmail 95504 invoked from network); 19 Nov 2003 12:59:33 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Nov 2003 12:59:33 -0000 Received: (qmail 10769 invoked by uid 500); 19 Nov 2003 12:59:20 -0000 Delivered-To: apmail-jakarta-poi-user-archive@jakarta.apache.org Received: (qmail 10738 invoked by uid 500); 19 Nov 2003 12:59:20 -0000 Mailing-List: contact poi-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "POI Users List" Reply-To: "POI Users List" Delivered-To: mailing list poi-user@jakarta.apache.org Received: (qmail 10661 invoked from network); 19 Nov 2003 12:59:19 -0000 Received: from unknown (HELO mail3.painewebber.com) (162.64.255.15) by daedalus.apache.org with SMTP; 19 Nov 2003 12:59:19 -0000 Received: from ubspw.com ([161.15.156.196]) by mail3.painewebber.com (8.12.6/8.12.6) with ESMTP id hAJCxJTa008129 for ; Wed, 19 Nov 2003 07:59:19 -0500 (EST) Received: from pslemx01.xchg.pwj.com (localhost [127.0.0.1]) by ubspw.com (8.12.6/8.12.6) with ESMTP id hAJCxJVo015793 for ; Wed, 19 Nov 2003 07:59:19 -0500 (EST) Received: by pslemx01.xchg.pwj.com with Internet Mail Service (5.5.2657.72) id ; Wed, 19 Nov 2003 08:05:24 -0500 Message-ID: From: "Rizzo, Mike" To: "'POI Users List'" Subject: RE: How to Determine if a Spreadsheet Contains Macros or VBA Date: Wed, 19 Nov 2003 07:59:18 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks, it doesn't make sense to me yet, but that's because I need to become more familiar with POI and the Excel file format. What I'm really trying to do is write a servlet that will scan an office doc and let us know if there is any kind of VB, VBA, Macros (or whatever else can be in an office doc that can cause a dialog box to be instantiated when the doc is opened). I'd really like to not have to write an active x control in vb or vc++ and set up some M$ servers -- and any chance I get to use an open source solution is one that I will pursue. But as you can tell, I'm very new to the office document file structure and to POI -- but luckily not to Java. I have the event api example from the HSSF website working, could this just be another record type that I put in the switch statement? Or is it not that easy? -----Original Message----- From: Andrew C. Oliver [mailto:acoliver@apache.org] Sent: Tuesday, November 18, 2003 4:08 PM To: POI Users List Subject: Re: How to Determine if a Spreadsheet Contains Macros or VBA Yes. Use the (org.apache.poi.poifs.dev.)POIFSViewer to get a more specific name -- however if I recall you can look for a node in the POIFS document tree called "VBA_MACRO". You can look at the (o.a.p.h.usermodel.)HSSFWorkbook source to see how we walk the tree to copy the macros. Does that Make sense? On 11/18/03 12:10 PM, "Rizzo, Mike" wrote: > Hi, > > I would like to use POI to determine if a spreadsheet contains macros or > VBA. Is this possible with POI? If so, how? > > Thanks, > > Mike Rizzo > > > > Please do not transmit orders or instructions regarding a UBS account by > email. The information provided in this email or any attachments is not an > official transaction confirmation or account statement. For your protection, > do not include account numbers, Social Security numbers, credit card > numbers, passwords or other non-public information in your email. Because > the information contained in this message may be privileged, confidential, > proprietary or otherwise protected from disclosure, please notify us > immediately by replying to this message and deleting it from your computer > if you have received this communication in error. Thank you. > > UBS Financial Services Inc. > UBS International Inc. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: poi-user-help@jakarta.apache.org > -- Andrew C. Oliver http://www.superlinksoftware.com/poi.jsp Custom enhancements and Commercial Implementation for Jakarta POI http://jakarta.apache.org/poi For Java and Excel, Got POI? The views expressed in this email are those of the author and are almost definitely not shared by the Apache Software Foundation, its board or its general membership. In fact they probably most definitively disagree with everything espoused in the above email. --------------------------------------------------------------------- To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: poi-user-help@jakarta.apache.org Please do not transmit orders or instructions regarding a UBS account by email. The information provided in this email or any attachments is not an official transaction confirmation or account statement. For your protection, do not include account numbers, Social Security numbers, credit card numbers, passwords or other non-public information in your email. Because the information contained in this message may be privileged, confidential, proprietary or otherwise protected from disclosure, please notify us immediately by replying to this message and deleting it from your computer if you have received this communication in error. Thank you. UBS Financial Services Inc. UBS International Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: poi-user-help@jakarta.apache.org