Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Jexcel - Detecting Macros Within Excel Files

Posted on 2009-07-02
2
Medium Priority
?
1,376 Views
Last Modified: 2013-11-23
I was wondering if anyone knew of a method within Jexcel that could detect macros.  I know of the allowMacros() method, but I don't want potentially harmful/malicious code to be in there period.  I would much rather just detect if there are macros on the page and then route the user to an error page if true.
0
Comment
Question by:BusyBeee
2 Comments
 
LVL 3

Accepted Solution

by:
Michal-Drozd earned 2000 total points
ID: 24765014
Hi,
I have solution for you. There is method of WorkbookParser class called containsMacros()

here is java doc:
http://www.docjar.com/docs/api/jxl/read/biff/WorkbookParser.html

use it and you can detect macros in workbook
0
 

Author Closing Comment

by:BusyBeee
ID: 31599167
Thanks for finding it.  I'll have to check tues. to see if we have this.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This video teaches viewers about errors in exception handling.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question