zoukankan      html  css  js  c++  java
  • Create a New Document Using Office Web Apps

    A few days ago I moved one of my personal domains to Office 365. One of the things I noticed is that you can create new documents without the need of a client application, everything is done by the Office Web Apps.

    Create documents

    Create documents

    This is only possible from the Home page of Office 365. When you create a new document from within the document library itself, you still need the client application to be installed to create the document.

    When I got back to the homepage of Office 365 I saw that it used the following url:

    Spaces are added to the URL to fit on the page.

    This URL can also be used on a SharePoint on-premise environment with Office Web Apps installed.

    SharePoint On-premise with Office Web Apps

    SharePoint On-premise with Office Web Apps

    The CreateNewDocument page can be used to create Word, PowerPoint and OneNote documents. If you want to create Excel documents you need to use the following URL:

    Spaces are added to the URL to fit on the page.

    As you can see it makes use of another page called xlviewer.aspx.

    URL Anatomy

    CreateNewDocument

    http://www.yourdomain.com/ TeamSite/_layouts/CreateNewDocument.aspx

    Querystrings

    • ID: URL to the document template that is associated with the content type;
    • SaveLocation: the location to the document library where the document needs to be saved;
    • Source: the URL to the default view of the document library;
    • DefaultItemOpen: is set to 1.

    xlviewer

    http://www.yourdomain.com/TeamSite/_layouts/xlviewer.aspx

    Querystrings

    • New: set to 1;
    • SaveLocation: the location to the document library where the document needs to be saved;
    • Source: the URL to the default view of the document library;
    • DefaultItemOpen: is set to 1.

    What can you do with it?

    You could add a HTML markup to your page with links to the documents templates, so you can create documents without the need of a client application. Like in Office 365.

    Create documents

    Create documents

    Another approach could be to create a web part and check the available document libraries and document templates.

    Web Part showing documents from the Documents library

    Web Part showing documents from the Documents library

    Web Part showing documents from the Facturen library

    Web Part showing documents from the Facturen library

    原文:http://www.estruyf.be/blog/create-a-new-document-using-office-web-apps/

  • 相关阅读:
    JS实现右侧悬浮框随着页面的上下轮动而移动
    js实现一个简单的时钟表
    js实现前后端分离点击新闻列表跳转到相应的详情页
    获取当前时间的年、月、日
    点击获取今天时间、明天时间、本周时间、本月时间
    判断是不是ie7浏览器,把https换成http(兼容ie7)
    jq控制class相同点击隐藏当前相同的父元素
    js、jq控制class相同当子元素为空时,父元素隐藏
    photoshop
    不得不说一下vite
  • 原文地址:https://www.cnblogs.com/PeterHome/p/3165253.html
Copyright © 2011-2022 走看看