<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="OnlineEditorsExample._Default" Title="ONLYOFFICE" %> <%@ Import Namespace="System.IO" %> <%@ Import Namespace="System.Web.WebPages" %> <%@ Import Namespace="System.Linq" %> <%@ Import Namespace="System.Web.Configuration" %> <%@ Import Namespace="OnlineEditorsExample" %> <%@ Import Namespace="System.Collections.Generic" %> /> ONLYOFFICE
  • ONLYOFFICE
  • ONLYOFFICE
  • Create new
    Username
    Language
    <% var storedFiles = GetStoredFiles(); %>
    <% if (bool.Parse(WebConfigurationManager.AppSettings["enable-forgotten"])) { %>
  • Forgotten files
  • <% } %>
    "> ONLYOFFICE Document Editors – Welcome! Get started with a demo-sample of ONLYOFFICE Document Editors, the first html5-based editors.
    You may upload your own documents for testing using the "Upload file" button and selecting the necessary files on your PC.
    Please do NOT use this integration example on your own server without proper code modifications, it is intended for testing purposes only. In case you enabled this test example, disable it before going for production. You can open the same document using different users in different Web browser sessions, so you can check out multi-user editing functions. <% foreach (User user in Users.getAllUsers()) { %>
    <%= user.name.IsEmpty() ? "Anonymous" : user.name %>
      <% foreach (string description in user.descriptions) { %>
    • <%= description %>
    • <% } %>
    <% } %>
    <% if (storedFiles.Any()) { %>
    Your documents
    Clear all
    Filename Editors Viewers Action
    <% foreach (var storedFile in storedFiles) { var directUrlParam = GetDirectUrlParam(); var editUrl = "doceditor.aspx?fileID=" + HttpUtility.UrlEncode(storedFile.Name) + directUrlParam; var ext = Path.GetExtension(storedFile.Name).ToLower(); var docType = DocumentType(storedFile.Name); var canEdit = EditedExts.Contains(ext); var isFillFormDoc = FillFormsExts.Contains(ext); %> <% if (canEdit) { %> <% if (docType != "pdf") { %> <% } %> <% if (docType == "word") { %> <% } else if (docType == "cell") { %> <% } %> <% if (docType == "word") { %> <% } else{%> <%} %> <%if (docType != "word" && docType != "cell"){%> <% } %> <% if (isFillFormDoc) { %> <% } else { %> <% } %> <% } else if (isFillFormDoc) { %> <% } else { %> <% } %> <% if (docType != null ) { %> <% } else { %> <% } %> <% } %>
    <%= storedFile.Name %> " target="_blank"> Open in editor for full size screens " target="_blank"> Open in editor for mobile devices " target="_blank"> Open in editor for comment " target="_blank"> Open in editor for review " target="_blank"> Open in editor without access to change the filter " target="_blank"> Open in editor without content control modification " target="_blank"> Open in editor for filling in forms " target="_blank"> Open in editor for filling in forms for mobile devices " target="_blank"> Open in editor for filling in forms " target="_blank"> Open in viewer for full size screens " target="_blank"> Open in viewer for mobile devices " target="_blank"> Open in embedded mode Convert Download Delete
    <% } %>
    After these steps are completed, you can work with your document.
    1. Loading the file. The loading speed depends on file size and additional elements it contains.
    2. Conversion. The file is converted to OOXML so that you can edit it.
    The file is password protected.
    Enter
    Skip

    3. Loading editor scripts. They are loaded only once, they will be cached on your computer.
    Note the speed of all operations depends on your connection quality and server location.
    Upload error:
    Please select another file and try again.

    Edit
    View
    Embedded view
    Cancel
    1. Select a format file to convert The converting speed depends on file size and additional elements it contains.

    2. File conversion The file is converted
    0 %
    Note the speed of all operations depends on your connection quality and server location.

    DOWNLOAD
    VIEW
    EDIT
    CANCEL