FTP mode implementation of Word operation under BS

zhaozj2021-02-16  49

Question: I believe the development

BS

Pattern

OA

Applying friends, will face a problem - how to be on the browser

Word

Document operation, such as handwriting, saving to the server, etc.

?

Here is a common method of implementing this feature,

FTP

Implementation.

Design Idea: Enable FTP service on the server side, you need to operate the Word file, through the FTP server as excessive, put the Word file from the FTP server get to the client, and then modify the file PUT to the FTP server. This process certainly can't make users hand on the FTP client to perform, and you must do a control. Then, the FTP control has become the focus of solving this problem.

After the FTP control is issued, the file is transferred to the server to combine with the Notes document in the circle? This problem can be resolved here: First, the uploaded file is stored in a specific directory of the FTP server, and the file name can take a special identity to achieve associated with the Notes document in the circulation. Naming a Word file with a NOTES document is a comparison method; one is a Word file that will have been uploaded to the FTP server, and the file is embedded as a Notes document with an attachment of the NOTES document by running the server.

These two advantages and disadvantages:

The first, advantages - simple. Disadvantages - Not safe, Domino cannot retrieve the Word file.

Second, advantages - perfect. Disadvantages - It is necessary to operate the Word file by the server to add the risk of operation failure.

Implementation:

1. Production of FTP Controls - Make FTP controls using VB.

Production: Run VB, create a new ATIVEX project (such as inetftp), reference the INET.OCX component.

Package: Package the manufactured FTP control with VB combo tools.

Server storage location: Place the packaged files in the Data / Domino / HTML directory of the Domino server.

2, reference FTP controls in the Notes form

Codebase = "http: //yourserver/activex/inetftp.cab#version=1, 0, 0">

3, enable FTP

Establish an application directory in the FTP root directory of the FTP server. Start the FTP server.

4, browser operation

When running a FTP control on your browser, you can implement a series of operations of the file download, modification, and upload a saver server.

Summary: This method is not called the best solution, but the problem of operating the Word file on the BS is fully resolved.

转载请注明原文地址:https://www.9cbs.com/read-24807.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.049, SQL: 10