javascript - How do I open the Microsoft Office Web Viewer with a search term already applied? -


I want to be able to open an excel sheet using the Office Web Viewer, HTML View component (this is called "Office Web App Viewer ".) The viewer component is actually the best HTML document document presentation engine, but for that I can not find any documents online at all. It is also hard to understand what is his true name (does anyone have the details of the API?)

I should be able to load the document and will have to call a Javascript function immediately to do a search So that the document is already open with the highlighted search results. Even better, it would be able to set the search term in the query string for the duration of the viewer.

Does anyone know if this is possible and if so, how?

I can say with certainty that there is no such API because the viewer is used for such use is not. Yes, I know, the answer you wanted to hear, but not again, this is just this way. It is only an audience, not any component used as part of the application.

Dysk & amp; Dirty Solution: Using an Expansion

One way to get what you want is to write an extension that will show you this functionality Of course, your users will need to install this extension , But this is definitely an option and writing such an extension would be relatively easy.

Better solution: PDF.js

  1. Convert your documents to PDF using some server-side solutions.

    On Linux with OpenOffice.org, it can be used for example LibreOffice like oowriter -convert-to pdf: writer_pdf_export doc_file.doc or swriter Can look for / P>

  2. Use them to use Mozilla's cross browser.

  3. How to trigger PDFFindController to highlight. Look at one glance and the next, they are definitely triggering the highlighting (the object I have given earlier), but because it is not directly addressing this question, I can not understand this for you I am

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -