Monday, February 20, 2012

Launch MS-Word or PDF using Websphere Portlet Factory.

In order to launch MS-Word or PDF using WebSphere Portlet Factory use the below steps.

Step 1: Use Content Launch Action buider to coordinate the retrieval and browser based handling of application content.



You can render the document on click of image button, button or link. So select the option depending on the requirement. Content Type can either be selected either by file chooser or through a method based on condition.

Content can be retrieved through LJO.





Step 2: Method to retrieve blob object from database.



Above code will fetch the file from database and launch it using Content Launch Action builder.

No comments:

Post a Comment