How to convert word documents to html page in sharepoint online 2013

Hi,
I am new SharePoint and still learning it.
I have been tasked to do the following on office 365 E3 SharePoint 2013 Online edition.
1) I have to create a Web page in asp.net
2) This page needs to show document from a given SharePoint folder and bind them in a grid or dropdown on the asp .net web page
3) On selecting the document from the drop down or gird (on asp .net webpage), I need to show the SharePoint word document as HTML on the webpage (something like word to html) Note: These SharePoint word document may contain Images, bullets, tables etc. 
What I have been able to do till now
1) I have been able to connect to SharePoint from ASP .net application.
2) I have been able to retrieve document from a specific SharePoint folder.
3) Read the document from SharePoint folder and bind them to a drop down on the asp .net page.
What is missing?
I am not aware about any API that SharePoint Online provides to convert Word document to HTML. Any code sample or reference on how to will be much appreciated. 
I am not also not sure what is the best way of achieving the functionality this?
Thanks 
Krishna

If this was SharePoint server then it would be easy however in O365 You need to create a app which will use the word automation service and below is  powershell which you can use for the conversion:-
# This script will convert Docx to PDF using word automation and similarly it can be used to convert to HTML
$wordFile="http://contoso/kick.docx"
$pdfFile="http://contoso/kick.pdf"
$wasp = Get-SPServiceApplicationProxy | where { $_.TypeName -eq "Word Automation Services Proxy" }
$site = Get-SPSite "http://contoso"
$ConvertJob = New-Object Microsoft.Office.Word.Server.Conversions.SyncConverter($wasp)
$ConvertJob.UserToken = $site.UserToken
$ConvertJob.Settings.UpdateFields = $false
$ConvertJob.Settings.OutputFormat = "PDF"
$ConvertJob.Convert($wordFile, $pdfFile)

Similar Messages

  • How to open word document form html container url iam getting internal_error while opening file

    Hi all,
    By using below code i am able to download word document file from html container. But before downloading i need edit these document to add Macro.
    I am unable to open word document.
    CREATE OBJECT G_HTML_CONTAINER
          EXPORTING
            CONTAINER_NAME = 'PDF'.
       CREATE OBJECT G_HTML_CONTROL
          EXPORTING
            PARENT = G_HTML_CONTAINER.
    * Convert xstring to binary table to pass to the LOAD_DATA method
        CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
          EXPORTING
            BUFFER     = LV_CONTENT
          TABLES
            BINARY_TAB = LT_DATA.
    data_tab = LT_DATA ).
    * Load the HTML
        CALL METHOD G_HTML_CONTROL->LOAD_DATA(
           EXPORTING
             TYPE         = 'application'
             SUBTYPE      = 'DOC'
           IMPORTING
             ASSIGNED_URL         = LV_URL
           CHANGING
             DATA_TABLE           = LT_DATA
           EXCEPTIONS
             DP_INVALID_PARAMETER = 1
             DP_ERROR_GENERAL     = 2
             CNTL_ERROR           = 3
             OTHERS               = 4 ).
    * Show it
        CALL METHOD G_HTML_CONTROL->SHOW_URL( URL = LV_URL
          IN_PLACE = 'X' ).
    Before file download i want edit the file for that i am using below class.
    PROXY TYPE REF TO I_OI_DOCUMENT_PROXY.
    by using (get_document_proxy) method  getting proxy .
    call method control->get_document_proxy
    exporting
    document_format   = 'x'
    document_type      = 'Word.Document'
    register_container  = 'x'
    importing
    document_proxy     = proxy
    after these.
    call method proxy->open_document
    exporting
    document_url    = lv_url
    open_inplace    = 'x'
    hear i m getting retcode as INTERNAL ERROR
    can any one suggest me how to open document from html container.
    Thanks and reagards
    jogu yadav

    I got resolution
    Thanks and regards,
    Jogu yadav

  • Convert Word document into HTML document

    Hello,
    I require an idea to accomplish the conversion of a .doc (word file) to .html (HTML file) in LabVIEW.
    I am working on a project in which i am having reports being generated after each test case execution.
    The data after the each test is meant to be appended in the corresponding report.
    I just want to convert the .doc file  to .html file for only display purpose as this is a requirement.
    I dont want to use any kind of converters in this.
    I have to do some calculations and modifications in the report before saving it,  that's why i am thinking in this way as i had come to know that this is possible in LabVIEW.
    Can someone help me in this regard.
    Thanks & Regards,
    Samriddh Sarbalhi

    samriddh wrote:
    Hi,
    Can i do this programatically using LabVIEW VI's.
    As noted, you need to access the Microsoft Word ActiveX server using the LabVIEW ActiveX functions. There are several examples that ship with LabVIEW (Help -> Find Examples) on how to use ActiveX. You can also search the NI site. 

  • How to create a site template with subsites on SharePoint Online (2013, wave 15)

    I need to create a site template of a site that contains 4 subsites.
    I have tried saving the parent site as a "site template", but when i create a new site based on this template, I don't get any of the subsites created.
    Anyone knows why the subsites are not included in the template?
    Thank you!
    José

    That is by design.  Site templates are a template for a specific site within a site collection and never include sub-sites.  In an On-premises environment you could create a Portal Site Template, but this won't work in SharePoint Online.  To
    build something equivalent in SharePoint online you would either need to use a Sandbox solution or custom client side code.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • How I can convert word file to html file

    Hi all,
    I need to convert word file to html File.. is there any 3rd party API ? please suggest me very soon.........
    or else
    suggest me easiest way to achive this problem...

    Easiest way....
    open up the document in Word, click on "Save as" and select "Web Page".
    There are 3rd party APIs to read Word docs... but I don't know if they then allow you to export to HTML.
    You may have to write that yourself.
    Look up : http://jakarta.apache.org/poi/
    regards,
    Owen

  • How do I copy and paste text from a converted Word document?

    I just converted a pdf file into word.  I want to copy and paste the informatiuon into another document.  How do I do that?

    Hi Sara.  Tanks for responding.  If I cannot figure this out (I  was up
    until 2am last night), I want to cancel my subscription.
    Here are two files you can check on/help me with.  When I try again,  it
    comes up 'an error has occurred when trying to access the service.'
    Please advise.
    Pat Tomassi
    In a message dated 11/1/2014 12:55:23 A.M. Eastern Daylight Time, 
    [email protected] writes:
    How  do I copy and paste text from a converted Word document?
    created by Sara.Forsberg (https://forums.adobe.com/people/Sara.Forsberg) 
    in Adobe Acrobat.com Services - View the full  discussion
    (https://forums.adobe.com/message/6888908#6888908)

  • How to display word document as a HTML document in portal

    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.

    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=%2fforums%2fsdn_forums%2fthread%7b74687265616449443d39313633%7d.jspa
    i hope passing doucment as a query parameter to com.sap.km.cm.highlightedcontent?DocumentUri=
    might solve this
    pls give your inputs
    Thanks

  • How do I convert a document created in Pages to a pdf file?

    How do I convert a document created in Pages to a pdf file?

    The same way that you would do it for any application, print menu or export menu.

  • How to edit a converted Word Document from a PDF file

    how to edit a converted Word Document from a PDF file

    Hi Edit Converted Word Doc,
    What's happening when you try to edit the file? Have you tried triple-clicking in the text block that you want to edit?
    Please let us know what sort of trouble you're running into. It would also be helpful to know how the PDF file was created, and what version of Word you're using.
    Best,
    Sara

  • Hyperlinks not working correctly when converting word doc to Web Page, Filtered

    I have created a word document (MS Word 2013) with Table of Contents and their links to particular sections and all the hyperlinks works fine in the word document. But when I convert this document into Web Page, Filtered then after a specific point
    the hyperlinks not pointing to their respective sections instead they are pointed to the end of the page.
    I have checked the page source of the HTML document and found that the table of contents have hyper links but the respective sections doesn't have the hyper link code and hence click on the a section didn't find the that section and go to the end
    of the document.
    I have tried to convert into PDF and hyperlinks worked fine.
    Please advise me how to resolve this issue.
    Thanks in advance
    Deepak

    Hi Deepak,
    I'm marking the reply as answer as there has been no update for a couple of days.
    If you come back to find it doesn't work for you, please reply to us and unmark the answer.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Bullets which include links will prevent correct copy/paste content from word document to wiki page.

    I have a word document around 20 pages which contains the following sentence (a bullet with two links):-
    Now if I remove this sentence then copy/paste the 20 pages from word to wiki page they will be pasted correctly inside the wiki page , where all the pages, bullets, etc will be mapped correctly inside the wiki page as HTML tables, bullets ,etc.
    But the problem if I kept the above sentence then the whole 20 pages will be pasted as plain text inside the wiki page.
    So can anyone advice on this ?and how I can overcome it ?

    Hi John,
    You can try this (1) Save as Word Doc as single file web page (2) Open that file in normal text editor(notepad or so) and copy all (3) Goto Wiki page edit source and paste all (4) Save it
    Let us know how it goes.
    please 'Propose as answer' if it help you, also de-mark it if it didn't. Thank you!
    the result will be as follow, not sure if this is a valid approach can you adivce ?:-

  • Can i convert indesign document to web page in dreamweaver

    Can I convert indesign 6 document to dreamweaver web page

    As SnakEyes suggests, the short answer is, "no." The long answer is more complicated.
    InDesign is a tool that provides you with desktop publishing, not web publishing. DTP tools let you choose fonts, precisely place graphics and photos, create columns with text that flows from one to the next and so on.
    A website is completely different. Web browsers do not have access to unlimited typefaces and, while your digital font license does allow you to send typefaces to a printer, it typically does not allow you to send it to all web browsers accessing your website on the internet. And also not all browsers work with all types of fonts hosted on a server.
    Text in browsers is rendered at screen resolution, which is typically 72 DPI. When you are setting up for a printer, you can access printers with 1200 and 2400 DPI, which is very high resolution. So your use of typefaces will, of necessity, be different for a website than it will be for print. We typically print for publications using serif typefaces for running text, as it helps the eye to flow to the next character and the next word. But since screen resolution is so low, we use sans-serif type for running text on a website because it will be more easily read than serif type on a low-resolution screen.
    Layout options for print tend to be very precise. One may simply drag and drop an image and have text flow around it in a DTP application. There is no design application for website building that allows you to do that which also gives you clean HTML and CSS code. So, if you want anything near like the precision for a website that you are used to in the DTP environment, you're going to need to learn HTML and CSS.
    Dreamweaver is a code-writing engine that has a display aspect that will let you see your design as you write the code. It also automates the production of a very limited amount of code, manages your links and will allow you to put your finished web pages on a server.
    Microsoft allows you to export Excel and Word documents "as web pages" and the result is horrific. It can actually take more time to clean up the code produced by these Microsoft applications than it would be to simply create a website from scratch in Dreamweaver.
    With In Design, the built-in HTML export is designed to extract content, not geometry. The end result of an export to HTML bears no resemblance to the original layout. The HTML exporter does allow the designer to attach external CSS and JavaScript files, but this assumes the designer is comfortable with code and has time to re-conceive the layout from scratch.
    Now, you can use the Adobe Digital Publishing Suite to do the export. This ranges from about $400.00 to $100,000 plus usage fees. This price may be good for the New York Times, but not cost-effective for a single designer or a small shop. The output of the DPS is limited. It only outputs to tablet devices and the iPhone. It won't output to desktops or Android phones. Everyone who wants to see your publication has to sign up for an Adobe.com account, then they have to send you their email address associated with the account. You then have to add their email to a distribution list, tell them to download the Adobe Content Viewer to their tablet, and then look at your publication through the ACV. Or you can create an app that is a stand-in for the Adobe Content Viewer, like the New York Times did and then you have to pay Apple the iOS Developer fee.
    Or, you can simply make a website that sticks to modern HTML and CSS standards.
    I'm looking forward to Ken Binney's comments after he sees the code structure exported from InDesign.
    -Mark

  • I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    Hi Frank ,
    Please refer to the following link and see if this helps.
    https://helpx.adobe.com/acrobat/kb/error-organizer-database-damaged-reset-1.html
    Regards
    Sukrit Dhingra

  • Converting XML document to HTMl using xsl

    Hi,
    I'm trying to convert an xml document into html page using xsl. But when I try to open the page in the browser nothing comes up.
    I'm not sure if I am using the PrintWriter correctly.
    StreamResult result = new StreamResult(new PrintWriter(new (File"text.html")));
    Please help.

    Oops! I wrote the parenthesis wrong in the previous mail
    This is the correct one I use in my program.
    StreamResult result = new StreamResult(new PrintWriter(new File("text.html")));
    Please help. Its urgent

  • HT2506 I am trying to convert  word document to a PDF but only half the document accurately converts. Is there a way to fix this?

    I am trying to convert  word document to a PDF but only half the document accurately converts. Is there a way to fix this?

    I have found that complicated document structures causes Word to split the document into parts, but I've always gotten the whole thing, in multiple documents.
    However, with two pages, I can't imagine it is that complicated.
    Any odd fonts or paragraph styles?

Maybe you are looking for

  • Windows 8.1 Pro x64 update issue

    Hi. Having installed Windows 8.1 Pro x64 on my business laptop (installed all drivers, fully updated it from Microsoft . . .) I joined it to the domain and installed needed apps. Then I put it in OU where updating of all computers inside that OU was

  • Dual Thunderbolt displays on Macbook Pro

    I have a 15" MacBook Pro (mid-2011) with two 27" Thunderbolt displays. I very frequently boot my Macbook (laptop closed) and my two displays are out of order. I always know it's a problem because one of my wallpapers get's changed. It sometimes takes

  • Launch agent not running correctly in Yosemite

    I have a launch Agent that up until upgrading to Yosemite worked fine. Now it will not correctly run the script that it attempts to run. It would be great to get these folder actions up and running again. This is what I found so far:- The script work

  • ATV Audio Only

    I want to use ATV3 to stream music to audio receiver only.  How do I control w/o a TV in the loop?

  • Aperture 3 Bulk process workflow

    I'm having a work-flow issue in aperture 3 that I hope you can suggest a way out of. My typical workflow: 1)import 2)Stack similar images 3)Pick favorite from each stack 4)Process pick from each stack. That all works great. But now I want to create a