This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman 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 Elasticsearch in Action this week in the Big Data 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
Author

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

sreenu valireddi
Greenhorn

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");
driver.getRenderer().setOptions(rendererOptions);

Thanks in Advance
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4517
    
    8

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: driver.getRenderer().setOptions(rendererOptions) giving error