This article is a mirror article of machine translation, please click here to jump to the original article.

View: 26324|Reply: 1

[Source] C# tutorial for office web app server deployment and simple operation

[Copy link]
Posted on 2019-9-24 10:18:36 | | |
Deployment environment: Windows Server 2012 R2, the server is in the AD domain


Reference URL:

The hyperlink login is visible.(office.15).aspx

The hyperlink login is visible.

1. Install Windows Server 2012 R2, be careful not to use the preview version, install Windows update, and restart the server


2. Installation. NET Framework 4.5.2


3. Open the Windows PowerShell prompt as an administrator, and then run this command sample to install the required roles and services, restart the server

4. Install Office Web Apps Server, usually an iso file, such as :cn_office_web_apps_2013_x64_dvd_1133682.iso


5. Download and install Office Web Apps Server SP1, wacserversp2013-kb2880558-fullfile-x64-glb.exe

The hyperlink login is visible.


6. Install the language pack for Office Web Apps Server, Microsoft download it from this address, as :wacserverlanguagepack.exe

The hyperlink login is visible.

7. Configure the AD domain for the server, which can be set from the Computer Properties page - Computer Name, Domain, and Workgroup Settings. And add an AD domain account to give server administrator permissions


8. Log in to the server with that account, open the Windows PowerShell prompt as an administrator, and use the New-OfficeWebAppsFarm command to create a new Office Web Apps Server farm with one server, as shown in the following example

  • –InternalURL internal access address, generally yesThe hyperlink login is visible.Domain control address
  • –AllowHttp whether http access is allowed
  • –ExternalUrl The external access address, usually the IP address of the server.
  • –EditingEnabled enables editing in Office Web Apps if it is used with SharePoint 2013. Lync Server 2013 or Exchange Server 2013 do not use this parameter because these hosts do not support editing.


For more parameters, please see:The hyperlink login is visible.

If no error is reported, access the addressThe hyperlink login is visible.//hosting/discovery, you can see the wopi-discovery document


Part 2 Using WOPI to Preview and Edit Documents Online (Editing supports docx, xlsx, pptx, but does not support doc, xls, ppt; Check online that all of the above are supported

1. Code Address:The hyperlink login is visible.There are two branches, the main branch corresponds to Office Online 2016 and release_0.8_for_owa2013 corresponds to Office Web App Server 2013, and we use the code for this branch


2. After switching to this branch, you need to refer to Microsoft.CobaltCore.dll separately. The DLL is searchable on the server where Office Web App Server is deployed.


3. Since I am deploying Office Web App Server with a virtual machine, I need to modify the address in the CobaltServer.cs file so that the virtual machine can access the address. If the port number is occupied, it also needs to be modified.

4. Place the root directory of the file in the Program.cs file, which can be modified by yourself


5. Run the program, access the address, you can view the word document test.docx, note that :test.docx must be in the root directory mentioned in 4, and other more URL addresses can be accessed to refer to the wopi-discovery document

The hyperlink login is visible.Domain Control Address /wv/wordviewerframe.aspx? WOPISrc=http://10.204.13.78:8081/wopi/files/test.docx&access_token=06l%20hXK6zWTUi

Note:"src=" is a document that can be accessed and downloaded normally over the networkBefore testing, you should test whether the document can be downloaded normally.

Notes:

1.docx file needs to be saved by clicking the save button, while xlsx files do not.


There is a cache bug in the editing page when opening 2.docx file, that is, it is closed after opening the page, modifying the file locally with office, and opening the editing page again with the browser, which is still the original page, Office Online Server (viewing  The hyperlink login is visible.There will be no problem


6. The log of Office Web App Server is recorded in %programdata%\Microsoft\OfficeWebApps\Data\Logs\ULS\, which requires the server to display hidden folders and administrator permissions, which is convenient to view error information to locate errors.


7. WOPI related documentation:The hyperlink login is visible.


Other related blogs:

The hyperlink login is visible.


Other source code examples:

The hyperlink login is visible.

The hyperlink login is visible.  

The hyperlink login is visible.

The hyperlink login is visible.


Office Online Server (Office Web App Server Upgrade) Related Documentation:

The hyperlink login is visible.(v=office.16).aspx

The hyperlink login is visible.


Other articles:

The hyperlink login is visible.





Previous:C# Exceptional Multilingual Localization Support
Next:WPS Office 2019 11.8.2.8593 Pro Plus
Posted on 2019-9-24 16:20:36 |
This must be supported... Online preview...
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com