cancel
Showing results for 
Search instead for 
Did you mean: 

How to display word document as a HTML document in portal

rudradev_devulapalli3
Active Participant
0 Kudos

Hi

I developed a portal application in that i am displaying word document using IFrames, from my application i am uploading word document and saving those document in KM

Requirement is that i need to provide an option to show this word document in html.

Thanks

Rudradev.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Well ur initial question says that ur uploading a word document and need to see it in HTML you didnt mention about the highlighting fact.

detlev_beutner
Active Contributor
0 Kudos

Hi Glenn,

You're still on the wrong path. The highlighting feature doesn't need to highlight anything. As long as the document is indexed (independent if DOC, PDF or whatever - as long as it can be indexed), a HTML version can be shown!

Hope it helps

Detlev

Former Member
0 Kudos

Hi,

It is not possible to convert word documents in to HTML using any apis provided within the portal. For that you would have to use external libraries (e.g POI) to read the word document and display it in HTML.

Incase you need any assitance using POI you may email me on glenn.mendonca@gmail.com

P.S: Kindly assign points if your query is resolved, also close the question to assist other users narrow the search and find solutions

rudradev_devulapalli3
Active Participant
0 Kudos

Hi Glenn Mendonca

I thing it is possible

Even in SDN search results page, we have option called "HTML version" link

to see the search document in HTML

see the below url

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=...

i hope passing doucment as a query parameter to com.sap.km.cm.highlightedcontent?DocumentUri=

might solve this

pls give your inputs

Thanks

detlev_beutner
Active Contributor
0 Kudos

Hi Rudradev,

> i hope passing doucment as a query parameter to

> com.sap.km.cm.highlightedcontent?DocumentUri=

If you already know the solution - why are you asking?

What you need is the document being indexed! That's the way to go!

Hope it helps

Detlev