4

Using and Creating Reusable Formatted Text Snippets to Build Documents in ASP.NE...

 1 year ago
source link: https://www.textcontrol.com/blog/2023/02/16/using-and-creating-reusable-formatted-text-snippets-to-build-documents/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Manual document creation and processing is a high-effort process and error-prone. Information is manually typed into documents, older versions are reused (copy and change of existing documents) or documents are created from scratch each time a new document is required.

Contract Lifecycle Challenges

Specifically for business critical documents such as contracts and agreements, manual processes can be dangerous in many ways.

The following table lists typical challenges with agreement processes:

Preparation Collaboration Signing Managing
Errors due to manually entered data into contracts. Usage of different "red-lining" tools and versions (MS Word). No central portal to see status of the signing process. Errors due to manually entered data into contracts.
Delays due to long preparation process. No central control over tracked changes. Delays due to missing information. No central contract repository or search.
No data binding to CRM and ERP systems. Poor user experience. Delays due to wrong routing. Security and data privacy

For this sample, we take a look at the Preparation column and specifically the first reason:

Errors due to manually entered data into contracts.

To avoid this, reusable text snippets should be used and maintained at a central location. The following screenshot shows the sample that allows users to insert formatted snippets.

Text Snippets in TX Text Control

Creating Snippets

The interface allows users to create new snippets by selecting any text in the document and clicking New Snippet.

Text Snippets in TX Text Control

All elements are saved within the snippet including formatted text, merge and form fields, tables and other document elements. Technically, the snippet is saved using the Selection.save method and is stored server-side along with an HTML preview generated by TX Text Control.

Loading Snippets

In case a snippet is inserted into the document, the Selection.load method is used to load the document asynchronously.

Managing Snippets

The sample also implements an overview page that lists all created snippets.

Text Snippets in TX Text Control

This section allows you to edit and delete existing snippets and to create new snippets from scratch.

Text Snippets in TX Text Control

Test this on your own and fork our sample project on GitHub.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK