fit_value_to_ms_word_file
v1.0.28
Published
This is LamHoang package
Downloads
37
Maintainers
Readme
Getting Started
🌵 Hi there 🌵
🌵 🌵 This is a library that helps you change some information on a Microsoft Word file and export it back to doc after changing that. 🌵 🌵
Install
yarn add fill_to_ms_word_file or npm i fill_to_ms_word_file
How to use
First, you need import lib to index.html file or any index file in your project directory.
- Example: index.html
<script src="https://cdn.jsdelivr.net/npm/fit_value_to_ms_word_file@latest/dist/lib/zip.min.js"><script>
<script src="https://cdn.jsdelivr.net/npm/fit_value_to_ms_word_file@latest/dist/lib/fill.min.js"><script>
<script src="https://cdn.jsdelivr.net/npm/fit_value_to_ms_word_file@latest/dist/lib/preview.min.js"><script>
Component file
import {previewFile} from "fit_value_to_ms_word_file";
...
function chooseFile(idContentPreview){
previewFile(idContentPreview);
}
import {changePrice} from "fit_value_to_ms_word_file";
...
Example: If your document contains the [] operator, you can use the following below code to change
changePrice(price, checkTextOnDoc);
import {changeDate} from "fit_value_to_ms_word_file";
...
Example: If your document contains two [] operators, you can use the following below code to change
changeDate(startDate, endDate, checkTextOnDoc);
import {exportToDoc} from "fit_value_to_ms_word_file";
...
function clickButton(){
exportToDoc(idContentPreview, filename);
}
🌵 Good luck 🌵
Create By Lãm Hoàng
Learn more
Please contact via [email protected]