Solved

Jexcel - Detecting Macros Within Excel Files

Posted on 2009-07-02
2
1,297 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 500 total points
Comment Utility
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
Comment Utility
Thanks for finding it.  I'll have to check tues. to see if we have this.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
countHi2 challenge 7 43
topping2 challenge 13 55
Which is the latest version of Apache Tomcatl 3 35
Systems talking to each other 5 107
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now