This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes  driver.getRenderer().setOptions(rendererOptions) giving error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark " driver.getRenderer().setOptions(rendererOptions) giving error" Watch " driver.getRenderer().setOptions(rendererOptions) giving error" New topic

driver.getRenderer().setOptions(rendererOptions) giving error

sreenu valireddi

Joined: Apr 23, 2014
Posts: 18
Hi All,

I am using FOP-1.0.jar and i am getting error , method setOptions(Map<String ,String>) is undefined for type Renderer . How can i resolve it.

java.util.Map rendererOptions = new java.util.HashMap();
rendererOptions.put("ownerPassword", "mypassword");
rendererOptions.put("allowCopyContent", "TRUE");
rendererOptions.put("allowEditContent", "FALSE");
rendererOptions.put("allowPrint", "TRUE");

Thanks in Advance
Matthew Brown

Joined: Apr 06, 2010
Posts: 4541

What is the return type for the getRenderer() method? Does that type have a setOptions() method, and what type of argument does that take? That will probably explain why you're getting this error.
I agree. Here's the link:
subject: driver.getRenderer().setOptions(rendererOptions) giving error
It's not a secret anymore!