0

This SO question shows a programmatic way for highlighting text in a word document. I am looking to do the same thing but for a document opened inside Sharepoint 2010.

From this link I understand that a document can be opened inside sharepoint itself using the office webapp (a bit of a hack in 2010, better in 2013) or in the local user instance of word/excel/...

I would need programmatic, read-only control over that preview. Mainly to highlight particular text fragments. I would think it should be possible to do this for the webapp instance but not for the locally started instance. Though I have't found any example code or pointers how to approach this. Commercial solutions are not an option.

Edit:

Community
  • 1
  • 1
dgorissen
  • 6,207
  • 3
  • 43
  • 52
  • with no reaction, have put in a vote to have the question migrated to the sharepoint site, maybe that is a better place for this. – dgorissen Aug 22 '13 at 10:59

1 Answers1

0

As far as I can see this is not possible, but happy to be proven wrong. The only solution I see is to do the highlighting on the server side up front (e.g., using com or openxml libs) in a separate copy of the document or on the fly (e.g., like here). Then serve the processed document to the client.

Community
  • 1
  • 1
dgorissen
  • 6,207
  • 3
  • 43
  • 52