Solved

Jexcel - Detecting Macros Within Excel Files

Posted on 2009-07-02
2
1,306 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Not needed 13 94
Java JRE greater than 1.6 5 50
TT Auto Dashboard 13 85
servlet requestdispatcher include and forward differences 1 25
There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
This video teaches viewers about errors in exception handling.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

895 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

15 Experts available now in Live!

Get 1:1 Help Now