[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1387
  • Last Modified:

Jexcel - Detecting Macros Within Excel Files

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
BusyBeee
Asked:
BusyBeee
1 Solution
 
Michal-DrozdCommented:
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
 
BusyBeeeAuthor Commented:
Thanks for finding it.  I'll have to check tues. to see if we have this.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now