Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: remove redundant part of action-template-print #279

Merged
merged 245 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
245 commits
Select commit Hold shift + click to select a range
73ac20b
docs: Added translations for documents under the handbook module
huanmah Aug 30, 2024
3638602
docs: Translations for documents under the handbook module.
huanmah Aug 31, 2024
522c755
docs: Corrected some markdown headings and styles
huanmah Aug 31, 2024
fb10d39
Merge remote-tracking branch 'origin/main'
huanmah Aug 31, 2024
1aaab66
Merge branch 'nocobase:main' into main
Albert-mah Sep 1, 2024
32645bd
fix: refine the en-US handbook document @05Sep
qixia-san Sep 4, 2024
988905c
Merge branch 'nocobase:main' into main
Albert-mah Sep 5, 2024
709608e
Merge branch 'guangcheng'
huanmah Sep 5, 2024
fb50a05
docs: Corrected some translaters
huanmah Sep 5, 2024
64eeb42
Fix: refine the en-US handbook document @06Sep from qixia
qixia-san Sep 6, 2024
ef33aec
Fix: refine the en-US handbook document @06Sep
qixia-san Sep 6, 2024
bc2c830
Merge branch 'nocobase:main' into main
Albert-mah Sep 7, 2024
720b1b3
Merge branch 'nocobase:main' into main
Albert-mah Sep 8, 2024
84c29b4
Merge branch 'guangcheng'
huanmah Sep 8, 2024
4cbe824
Fix: refine the en-US handbook document @08Sep
qixia-san Sep 8, 2024
67109b4
docs: supplement translations of development part
huanmah Sep 8, 2024
af7d83e
Merge remote-tracking branch 'origin/guangcheng' into guangcheng
huanmah Sep 8, 2024
e2f03e6
Fix: refine the en-US handbook document @09Sep
qixia-san Sep 9, 2024
f759023
Fix: refine the en-US handbook document @10Sep
qixia-san Sep 10, 2024
9c479ee
Merge branch 'nocobase:main' into main
Albert-mah Sep 10, 2024
f0f4840
Merge branch 'master' into guangcheng
huanmah Sep 10, 2024
d55e6c4
Fix: refine the en-US handbook document @11Sep
qixia-san Sep 11, 2024
d2a3f2d
Fix: refine the en-US handbook document @12Sep
qixia-san Sep 12, 2024
04b6954
docs: translation adding of handbook part
qixia-san Sep 12, 2024
692e870
Fix: refine the en-US handbook document @13Sep
qixia-san Sep 12, 2024
ff6dfc2
Fix: refine the en-US handbook document @13Sep
qixia-san Sep 13, 2024
8c4ee51
Fix: refine the en-US handbook document @15Sep
qixia-san Sep 15, 2024
905502c
Fix: refine the en-US handbook document @15Sep
qixia-san Sep 15, 2024
be82bf9
Fix: refine the en-US handbook document @19Sep
qixia-san Sep 19, 2024
8bc9ed1
docs: translation initialization of Japan adding
qixia-san Sep 19, 2024
e7c4c15
Merge branch 'nocobase:main' into main
Albert-mah Sep 20, 2024
fdd9eee
Merge branch 'main' into guangcheng
huanmah Sep 20, 2024
0fec657
docs: supplement translations of development part
huanmah Sep 20, 2024
807da25
Fix: merge-refine the en-US handbook document @20Sep
qixia-san Sep 20, 2024
bc91e11
Merge branch 'nocobase:main' into main
Albert-mah Sep 21, 2024
47c82ab
Merge branch 'main' into guangcheng
huanmah Sep 21, 2024
0d8863d
Merge branch 'nocobase:main' into main
Albert-mah Sep 22, 2024
4331a8c
docs: add Japanese localization content
huanmah Sep 23, 2024
a7f7e18
docs: add Japanese localization content
huanmah Sep 23, 2024
6f9a083
Merge branch 'nocobase:main' into main
Albert-mah Sep 30, 2024
405645d
Merge branch 'main' into guangcheng
huanmah Sep 30, 2024
4d5ff83
docs: add translate for notification-manager
huanmah Sep 30, 2024
3458411
Fix: refine the ja-JP document
huanmah Oct 1, 2024
2f3030d
Fix: refine the ja-JP document
huanmah Oct 1, 2024
074e2db
Fix: refine the en-US handbook document @07Oct
qixia-san Oct 7, 2024
6ed7722
Merge branch 'nocobase:main' into main
Albert-mah Oct 8, 2024
bf34870
Merge branch 'main' into guangcheng
huanmah Oct 8, 2024
1f3ee6b
Fix: refine the en-US handbook document @08Oct
qixia-san Oct 8, 2024
cc880bf
Merge branch 'nocobase:main' into main
Albert-mah Oct 11, 2024
68d4802
Merge branch 'main' into guangcheng
huanmah Oct 11, 2024
367e0d0
Merge remote-tracking branch 'origin/guangcheng' into guangcheng
huanmah Oct 11, 2024
65c74ab
Fix: refine the ja-JP document
huanmah Oct 11, 2024
2cfc03e
Fix: refine the en-US handbook document @11Oct
qixia-san Oct 11, 2024
1b4cf36
Fix: refine the ja-JP document
huanmah Oct 11, 2024
60d1290
Merge remote-tracking branch 'origin/guangcheng' into guangcheng
huanmah Oct 11, 2024
d9e4ec3
Fix: refine the en-US handbook document @12Oct
qixia-san Oct 11, 2024
5f2469d
docs: translation initialization of English adding & partial cn update
qixia-san Oct 11, 2024
2c774dd
Merge remote-tracking branch 'origin/guangcheng' into guangcheng
qixia-san Oct 11, 2024
5922d53
Fix: refine the ja-JP document
huanmah Oct 13, 2024
db6fee4
Merge branch 'nocobase:main' into main
Albert-mah Oct 13, 2024
521e9c7
Merge branch 'main' into guangcheng
huanmah Oct 13, 2024
5009696
docs: update plugin backups ui translation (#182)
huanmah Oct 13, 2024
7d96842
docs: after success (#181)
huanmah Oct 13, 2024
d3c550b
Fix: refine the en-US/zh-CN/ja-JP handbook document @13Oct
qixia-san Oct 13, 2024
e31539c
docs: improve ja-JP translation of tree table definition
huanmah Oct 14, 2024
589d156
docs: improve ja-JP translation
huanmah Oct 14, 2024
b8e514b
Merge branch 'nocobase:main' into main
Albert-mah Oct 14, 2024
2462b8c
Merge branch 'main' into guangcheng
huanmah Oct 14, 2024
3bb1cf8
Fix: refine the en-US handbook document @14Oct
qixia-san Oct 14, 2024
7b66ea4
Merge branch 'guangcheng' of https://github.com/Albert-mah/docs into …
qixia-san Oct 14, 2024
795a557
feat: add ja-JP selection
huanmah Oct 15, 2024
48e4501
Merge remote-tracking branch 'origin/guangcheng' into guangcheng
huanmah Oct 15, 2024
54003dc
Revert "feat: add ja-JP selection"
huanmah Oct 15, 2024
621f550
feat: corrected URL link in ja-JP document.
huanmah Oct 15, 2024
04d2ca8
Merge branch 'nocobase:main' into main
Albert-mah Oct 15, 2024
8d09f9f
Merge branch 'guangcheng'
huanmah Oct 15, 2024
abcbcd7
fix: corrected resource in ja-JP document.
huanmah Oct 15, 2024
8f1300f
fix: correct style error in echarts overview.md.
huanmah Oct 17, 2024
8fdd957
Merge branch 'nocobase:main' into main
Albert-mah Oct 17, 2024
051aaa4
docs: add translations for in-app message notifications (#190)
huanmah Oct 17, 2024
c79c8a5
doc: add translation of commercial-installation.md in EN.
Oct 20, 2024
6f5d2a6
Merge branch 'guangcheng' of https://github.com/Albert-mah/docs into …
qixia-san Oct 20, 2024
f127541
Fix: refine the en-US handbook document @20Oct
qixia-san Oct 20, 2024
2556726
测试
Oct 20, 2024
b557a86
Fix: refine the en-US handbook document @21Oct
2013xile Oct 21, 2024
0c069b6
Fix: refine the en-US handbook document @21Oct
2013xile Oct 21, 2024
52bec69
Fix: refine the en-US handbook document @21Oct
2013xile Oct 21, 2024
5804fa6
Merge branch 'guangcheng' of https://github.com/Albert-mah/docs into …
qixia-san Oct 21, 2024
7b7a2f2
test
2013xile Oct 21, 2024
6d36e85
Rollback test
2013xile Oct 21, 2024
dab4d6c
Merge branch 'guangcheng' of https://github.com/Albert-mah/docs into …
qixia-san Oct 21, 2024
ec6f513
Fix: refine the en-US handbook document @21Oct
qixia-san Oct 21, 2024
82c434c
Fix: refine the en-US handbook document @21Oct
qixia-san Oct 21, 2024
6952815
Merge branch 'nocobase:main' into main
Albert-mah Oct 22, 2024
4c9e806
Merge branch 'guangcheng'
huanmah Oct 22, 2024
4b4d5ee
Merge branch 'nocobase:main' into main
Albert-mah Oct 22, 2024
57ec99c
Fix: refine the en-US handbook document @22Oct
qixia-san Oct 22, 2024
0c3d150
Fix: refine the ja-JP handbook document @22Oct
qixia-san Oct 22, 2024
7bdb050
Fix: refine the en-US handbook/Chart document @22Oct
qixia-san Oct 22, 2024
c93f406
Merge branch 'nocobase:main' into main
Albert-mah Oct 25, 2024
b03a7bd
Fix: refine the en-US handbook/Chart document @25Oct
qixia-san Oct 25, 2024
2eb93fe
docs: translation adding of en-US handbook part @capper
2013xile Oct 27, 2024
4fb49f8
docs: translation adding of en-US handbook part - capper
2013xile Oct 27, 2024
1711936
Fix: refine the en-US handbook/Chart document @27Oct
qixia-san Oct 27, 2024
b68d3f1
Fix: refine the en-US handbook/Chart document @27Oct
qixia-san Oct 27, 2024
628b45d
Fix: refine the en-US handbook/Chart document @28Oct
qixia-san Oct 28, 2024
d62b663
Merge branch 'nocobase:main' into main
Albert-mah Oct 29, 2024
a235620
Merge branch 'guangcheng'
huanmah Oct 29, 2024
1d03490
Merge branch 'nocobase:main' into guangcheng
qixia-san Oct 29, 2024
c87af76
docs: translation adding of en-US handbook part
qixia-san Oct 29, 2024
0b4d0aa
Merge branch 'nocobase:main' into main
Albert-mah Oct 29, 2024
5de8780
Merge branch 'main' into guangcheng
huanmah Oct 29, 2024
b03d9b5
Merge branch 'nocobase:main' into main
Albert-mah Oct 29, 2024
1ce13b5
Merge branch 'nocobase:main' into main
Albert-mah Nov 10, 2024
6e45e46
Fix: refine the en-US handbook/notification document @11Nov
qixia-san Nov 11, 2024
f4b9f91
Merge branch 'nocobase:main' into main
Albert-mah Nov 22, 2024
b259567
Fix: refine the en-US handbook/notification document @22Nov
qixia-san Nov 23, 2024
4d3e778
Fix: refine the en-US handbook/notification document @23Nov
qixia-san Nov 23, 2024
6a20b7b
docs: add supplement of QR-Scan Action
huanmah Nov 25, 2024
a4cef0e
Merge remote-tracking branch 'origin/guangcheng' into guangcheng
huanmah Nov 25, 2024
e5875e5
Merge branch 'nocobase:main' into main
Albert-mah Nov 26, 2024
790a54d
docs: add icon of locale
huanmah Nov 26, 2024
83f748a
Merge branch 'nocobase:main' into main
Albert-mah Dec 1, 2024
cb41ce5
docs: change of locale
huanmah Dec 2, 2024
88b385d
Merge branch 'nocobase:main' into main
Albert-mah Dec 2, 2024
8bad851
fix: update dumi-theme-nocobase version
huanmah Dec 2, 2024
8d75dfe
Merge branch 'nocobase:main' into main
Albert-mah Dec 2, 2024
68ab833
fix: update dumi-theme-nocobase version
huanmah Dec 2, 2024
aff2009
Merge branch 'nocobase:main' into main
Albert-mah Dec 2, 2024
7d877e9
Merge remote-tracking branch 'origin/main'
huanmah Dec 2, 2024
4ccb93c
Merge branch 'nocobase:main' into main
Albert-mah Dec 2, 2024
091e550
Merge branch 'nocobase:main' into main
Albert-mah Dec 3, 2024
84dfdda
Merge branch 'nocobase:main' into main
Albert-mah Dec 3, 2024
a073657
Merge branch 'nocobase:main' into main
Albert-mah Dec 3, 2024
9355e77
fix: add translation of japanese
huanmah Dec 3, 2024
598e967
Merge branch 'main' into main
Albert-mah Dec 4, 2024
003b783
Merge branch 'nocobase:main' into main
Albert-mah Dec 4, 2024
d1012bb
fix: translation of Japanese
huanmah Dec 4, 2024
583a429
Merge branch 'nocobase:main' into main
Albert-mah Dec 4, 2024
faeb7b8
doc: translation of Japanese and English
huanmah Dec 4, 2024
d0ca088
Merge branch 'nocobase:main' into main
Albert-mah Dec 5, 2024
05426c2
doc: append translation of JavaScript
huanmah Dec 5, 2024
df06d2a
doc: append translation of JavaScript
huanmah Dec 5, 2024
937eaa5
doc: supplement some ja-JP text
huanmah Dec 5, 2024
e3a5fe0
fix: handbook index
huanmah Dec 5, 2024
7d7e218
Merge branch 'nocobase:main' into main
Albert-mah Dec 6, 2024
3380c0d
fix: modify plugin install config in ja-JP
huanmah Dec 6, 2024
18b2a23
Merge branch 'nocobase:main' into main
Albert-mah Dec 7, 2024
a13c36a
fix: delete the extra parts
huanmah Dec 10, 2024
d422925
Merge remote-tracking branch 'origin/main'
huanmah Dec 10, 2024
7be53ab
fix: delete the extra parts
huanmah Dec 10, 2024
d172ef2
fix: modify english part
huanmah Dec 10, 2024
dc39ecd
Merge branch 'nocobase:main' into main
qixia-san Dec 11, 2024
881ecf7
Fix: refine the en-US handbook/notification document @12Dec
qixia-san Dec 11, 2024
b373c64
Fix: refine the en-US handbook/notification document @13Dec
qixia-san Dec 12, 2024
6d09d9a
Merge branch 'nocobase:main' into guangcheng
qixia-san Dec 20, 2024
63851bd
Merge branch 'nocobase:main' into main
qixia-san Dec 20, 2024
10a21dd
Merge branch 'main' of https://github.com/Albert-mah/docs
qixia-san Dec 20, 2024
bf4102c
Fix: refine the en-US handbook/plugin document @21Dec
qixia-san Dec 20, 2024
584309a
Merge branch 'guangcheng'
qixia-san Dec 20, 2024
b7022e1
fix: add ja-JP document.
huanmah Dec 22, 2024
126ee24
Merge remote-tracking branch 'origin/main'
huanmah Dec 22, 2024
7213a1e
doc: add formula document.
huanmah Dec 23, 2024
e1f0a98
doc: add formula document.
huanmah Dec 23, 2024
4d7d557
Merge branch 'main' into guangcheng
huanmah Dec 23, 2024
5518aed
Merge branch 'nocobase:main' into main
Albert-mah Dec 23, 2024
73624b0
fix: supplement code block type.
huanmah Dec 24, 2024
70e3300
Merge branch 'nocobase:main' into main
Albert-mah Dec 24, 2024
f95891d
fix: style of formula.
huanmah Dec 24, 2024
e3f6332
fix: style of formula.
huanmah Dec 24, 2024
6702ba8
doc: style of formula.
huanmah Dec 24, 2024
0509648
fix: add locale format of formula.
huanmah Dec 24, 2024
3ad2bb2
Merge branch 'nocobase:main' into main
Albert-mah Dec 24, 2024
6f5eee9
doc: modify size of article when FormulaFunctions in page.
huanmah Dec 24, 2024
7d8eef6
Merge branch 'main' into main
Albert-mah Dec 24, 2024
2c41d8b
doc: add translations.
huanmah Dec 25, 2024
4e71fa3
Merge branch 'nocobase:main' into main
Albert-mah Dec 25, 2024
1a9db44
Merge remote-tracking branch 'origin/main'
huanmah Dec 25, 2024
9cd441c
Merge branch 'nocobase:main' into main
Albert-mah Dec 25, 2024
e8286f8
doc: add mathjs index.
huanmah Dec 25, 2024
5641c5c
fix: add mathjs index.
huanmah Dec 25, 2024
8a22a68
fix: add mathjs index.
huanmah Dec 25, 2024
c594e92
fix: add mathjs functions.
huanmah Dec 26, 2024
6afbe74
doc: add markdown-vditor examples.
huanmah Dec 26, 2024
ce78617
Merge branch 'main' into main
Albert-mah Dec 26, 2024
35cbadc
Merge branch 'nocobase:main' into main
Albert-mah Dec 26, 2024
4444c7f
doc: add calculation-engines
Dec 28, 2024
4c43669
doc: refine calculation engine description
huanmah Dec 28, 2024
fa7edaa
doc: edit calculation-engines
Dec 29, 2024
0d446fe
doc: remove useless files.
huanmah Dec 29, 2024
f6a0b23
Merge branch 'main' into main
Albert-mah Dec 29, 2024
fe74d5f
Merge branch 'nocobase:main' into main
Albert-mah Dec 29, 2024
2ce7f65
Merge branch 'nocobase:main' into main
Albert-mah Dec 31, 2024
18a14ae
doc: add translation of 'assword policy', 'approval'.
huanmah Jan 1, 2025
ce43ef5
fix: supplement code block type.
huanmah Dec 24, 2024
1414134
fix: style of formula.
huanmah Dec 24, 2024
3fa4dd1
fix: style of formula.
huanmah Dec 24, 2024
119d815
doc: style of formula.
huanmah Dec 24, 2024
603c8e4
fix: add locale format of formula.
huanmah Dec 24, 2024
dfddc60
doc: modify size of article when FormulaFunctions in page.
huanmah Dec 24, 2024
3309cdd
doc: add translations.
huanmah Dec 25, 2024
471ceb8
doc: format of formula component. (#249)
Albert-mah Dec 24, 2024
c8c6927
doc: modify size of article when FormulaFunctions in page. (#250)
Albert-mah Dec 24, 2024
219b9f6
doc: add formula translations. (#251)
Albert-mah Dec 25, 2024
02d861a
doc: add formula translations. (#252)
Albert-mah Dec 25, 2024
743a06c
fix: add .dumi theme change to deploy-docs.yml
Albert-mah Dec 25, 2024
7267983
doc: test .dumi change
Albert-mah Dec 25, 2024
3b4b401
doc: add mathjs index.
huanmah Dec 25, 2024
24acf33
fix: add mathjs index.
huanmah Dec 25, 2024
e6ac336
fix: add mathjs index.
huanmah Dec 25, 2024
58a2069
fix: add mathjs functions.
huanmah Dec 26, 2024
021bc19
doc: add markdown-vditor examples.
huanmah Dec 26, 2024
a94e407
doc: add calculation-engines
Dec 28, 2024
8116596
doc: refine calculation engine description
huanmah Dec 28, 2024
99b7762
doc: edit calculation-engines
Dec 29, 2024
9f7baa9
doc: remove useless files.
huanmah Dec 29, 2024
124577e
Feat/password policy (#257)
2013xile Dec 29, 2024
825341a
doc: remove useless files. (#260)
Albert-mah Dec 29, 2024
e142287
chore: separate docs of password policy (#262)
2013xile Dec 30, 2024
2df2397
docs: add delegate, add assignee and modify approval content (#254)
mytharcher Dec 30, 2024
be1a76b
doc: add translation of 'assword policy', 'approval'.
huanmah Jan 1, 2025
acdd4c5
Merge remote-tracking branch 'origin/main'
huanmah Jan 1, 2025
e9b5847
Merge branch 'main' into main
Albert-mah Jan 1, 2025
7afc9c9
doc: add work-subflow translation
Jan 1, 2025
61e4e26
Merge branch 'nocobase:main' into main
Albert-mah Jan 2, 2025
52a1c33
Merge branch 'nocobase:main' into main
Albert-mah Jan 2, 2025
54174e4
docs: Translations for documents under the handbook module and the we…
Jan 2, 2025
789f5cf
docs: Translations for documents under the handbook module and the we…
Jan 2, 2025
ec47ad0
Merge branch 'nocobase:main' into main
quyichen Jan 3, 2025
f9b3eef
docs: add security guide translation.
Jan 3, 2025
0e2c40f
doc: revert translation of security
huanmah Jan 4, 2025
b97278f
Merge branch 'nocobase:main' into main
quyichen Jan 4, 2025
bffd59b
docs: add ja-JP handbook translation.
Jan 4, 2025
883c803
docs: add ja-JP handbook translation.
Jan 4, 2025
e4195c3
docs: add ja-JP handbook translation.
Jan 4, 2025
a548796
docs: add api translation.
Jan 6, 2025
b0b1b2c
Merge branch 'nocobase:main' into main
Albert-mah Jan 7, 2025
efd50bc
doc: add content to action-template-print
huanmah Jan 7, 2025
03b11d5
docs: add handbook translation.
Jan 7, 2025
6874151
docs: add handbook translation.
Jan 7, 2025
0e3ff08
docs: add handbook translation.
Jan 7, 2025
dc1d11d
doc: remove redundant part of action-template-print
huanmah Jan 8, 2025
0781e98
Revert "doc: remove redundant part of action-template-print"
huanmah Jan 8, 2025
6a4a93a
Merge branch 'nocobase:main' into main
Albert-mah Jan 8, 2025
94df40f
doc: remove redundant part of action-template-print
huanmah Jan 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 1 addition & 56 deletions docs/en-US/handbook/action-template-print/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2391,6 +2391,7 @@ The following examples continue the previous documentation style, demonstrating

---


## Common Issues and Solutions

### 1. Empty Columns and Cells in Excel Templates Disappear in Rendering Results
Expand Down Expand Up @@ -2488,59 +2489,3 @@ Total Amount: {d.totalAmount:format('0.00')}
- **Check File Format**: Ensure the uploaded template file is in `.docx`, `.xlsx`, or `.pptx` format.
- **Compress File Size**: If the file is too large, try compressing the template file or optimizing the template content to reduce the file size.
- **Stabilize Network Connection**: Ensure a stable network connection and try the upload operation again.

## Summary

The template printing plugin offers powerful features, supporting template editing and dynamic data filling for various file formats. By configuring and using rich template syntax effectively, customized documents can be generated efficiently to meet different business needs, enhancing work efficiency and document quality.

**Key Advantages**:

- **Efficiency**: Automated data filling reduces manual operations and improves work efficiency.
- **Flexibility**: Supports multiple template formats and complex data structures, adapting to diverse document needs.
- **Professionalism**: Formatters and conditional output functions enhance the professionalism and readability of documents.

## Frequently Asked Questions

### 1. Empty Columns and Cells Disappear in Excel Template Rendering

**Issue Description**: In an Excel template, if a cell has no content or style, it might be removed during rendering, causing the cell to be missing in the final document.

**Solutions**:

- **Fill Background Color**: Fill the background color for empty cells in the target area to ensure the cells remain visible during rendering.
- **Insert Space**: Insert a space character in empty cells to maintain the cell structure even if there is no actual content.
- **Set Borders**: Add border styles to the table to enhance the boundary of cells and prevent them from disappearing during rendering.

**Example**:

In the Excel template, set a light gray background for all target cells and insert a space in empty cells.

### 2. Merged Cells Are Ineffective in Output

**Issue Description**: When using loop functions to output tables, if merged cells exist in the template, it may cause rendering anomalies such as loss of merging effects or data misalignment.

**Solutions**:

- **Avoid Using Merged Cells**: Try to avoid using merged cells in tables output by loops to ensure correct data rendering.
- **Use Center Across Columns**: If text needs to be centered across multiple cells, use the "Center Across Columns" function instead of merging cells.
- **Limit Merged Cell Locations**: If merged cells must be used, merge cells only at the top or right side of the table to prevent loss of merging effects during rendering.

**Example**:

**Incorrect Example**:

| Name | Department | Position |
|---|---|---|
| {d.staffs[i].name} | {d.staffs[i].department} | {d.staffs[i].position} |
| {d.staffs[i+1].name} | {d.staffs[i+1].department} | {d.staffs[i+1].position} |

*Merging cells in the "Department" column may cause rendering anomalies.*

**Correct Example**:

| Name | Department | Position |
|---|---|---|
| {d.staffs[i].name} | {d.staffs[i].department} | {d.staffs[i].position} |
| {d.staffs[i+1].name} | {d.staffs[i+1].department} | {d.staffs[i+1].position} |

*Keep each cell independent and avoid merging cells.*
87 changes: 16 additions & 71 deletions docs/ja-JP/handbook/action-template-print/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,46 +20,46 @@ The Template Printing plugin is a powerful tool that allows you to edit template
### Activating Template Printing

1. **Open the Detail Block**:
- Navigate to the detail block in the application where you need to use the template printing feature.
- Navigate to the detail block in the application where you need to use the template printing feature.

2. **Access the Configuration Operation Menu**:
- Click the "Configuration Operation" menu at the top of the interface.
- Click the "Configuration Operation" menu at the top of the interface.

3. **Select "Template Printing"**:
- Click the "Template Printing" option in the dropdown menu to activate the plugin.
- Click the "Template Printing" option in the dropdown menu to activate the plugin.

![Activate Template Printing](https://static-docs.nocobase.com/20241212150539-2024-12-12-15-05-43.png)

### Configuring Templates

1. **Access the Template Configuration Page**:
- In the configuration menu of the "Template Printing" button, select the "Template Configuration" option.
- In the configuration menu of the "Template Printing" button, select the "Template Configuration" option.

![Template Configuration Option](https://static-docs.nocobase.com/20241212151858-2024-12-12-15-19-01.png)

2. **Add a New Template**:
- Click the "Add Template" button to enter the template addition page.
- Click the "Add Template" button to enter the template addition page.

![Add Template Button](https://static-docs.nocobase.com/20241212151243-2024-12-12-15-12-46.png)

3. **Fill in Template Information**:
- In the template form, fill in the template name and select the template type (Word, Excel, PowerPoint).
- Upload the corresponding template file (supports `.docx`, `.xlsx`, `.pptx` formats).
- In the template form, fill in the template name and select the template type (Word, Excel, PowerPoint).
- Upload the corresponding template file (supports `.docx`, `.xlsx`, `.pptx` formats).

![Configure Template Name and File](https://static-docs.nocobase.com/20241212151518-2024-12-12-15-15-21.png)

4. **Edit and Save the Template**:
- Go to the "Field List" page, copy fields, and fill them into the template.
- Go to the "Field List" page, copy fields, and fill them into the template.
![Field List](https://static-docs.nocobase.com/20250107141010.png)
![20241212152743-2024-12-12-15-27-45](https://static-docs.nocobase.com/20241212152743-2024-12-12-15-27-45.png)
- After filling in the details, click the "Save" button to complete the template addition.
- After filling in the details, click the "Save" button to complete the template addition.

5. **Template Management**:
- Click the "Use" button on the right side of the template list to activate the template.
- Click the "Edit" button to modify the template name or replace the template file.
- Click the "Download" button to download the configured template file.
- Click the "Delete" button to remove unnecessary templates. The system will prompt for confirmation to avoid accidental deletion.
![Template Management](https://static-docs.nocobase.com/20250107140436.png)
- Click the "Use" button on the right side of the template list to activate the template.
- Click the "Edit" button to modify the template name or replace the template file.
- Click the "Download" button to download the configured template file.
- Click the "Delete" button to remove unnecessary templates. The system will prompt for confirmation to avoid accidental deletion.
![Template Management](https://static-docs.nocobase.com/20250107140436.png)

## Template Syntax

Expand Down Expand Up @@ -254,7 +254,7 @@ X

---
```

**Explanation**: The outer loop uses `i` to iterate through each brand, while the inner loop uses `j` to iterate through each model under the brand. `{d.cars[i].models[j].size}` and `{d.cars[i].models[j+1].size}` are used to fill in the current and next models, respectively. This allows for infinite levels of nested loops to accommodate complex data structures.

### Sorting Function
Expand Down Expand Up @@ -2391,6 +2391,7 @@ The following examples continue the previous documentation style, demonstrating

---


## Common Issues and Solutions

### 1. Empty Columns and Cells in Excel Templates Disappear in Rendering Results
Expand Down Expand Up @@ -2488,59 +2489,3 @@ Total Amount: {d.totalAmount:format('0.00')}
- **Check File Format**: Ensure the uploaded template file is in `.docx`, `.xlsx`, or `.pptx` format.
- **Compress File Size**: If the file is too large, try compressing the template file or optimizing the template content to reduce the file size.
- **Stabilize Network Connection**: Ensure a stable network connection and try the upload operation again.

## Summary

The template printing plugin offers powerful features, supporting template editing and dynamic data filling for various file formats. By configuring and using rich template syntax effectively, customized documents can be generated efficiently to meet different business needs, enhancing work efficiency and document quality.

**Key Advantages**:

- **Efficiency**: Automated data filling reduces manual operations and improves work efficiency.
- **Flexibility**: Supports multiple template formats and complex data structures, adapting to diverse document needs.
- **Professionalism**: Formatters and conditional output functions enhance the professionalism and readability of documents.

## Frequently Asked Questions

### 1. Empty Columns and Cells Disappear in Excel Template Rendering

**Issue Description**: In an Excel template, if a cell has no content or style, it might be removed during rendering, causing the cell to be missing in the final document.

**Solutions**:

- **Fill Background Color**: Fill the background color for empty cells in the target area to ensure the cells remain visible during rendering.
- **Insert Space**: Insert a space character in empty cells to maintain the cell structure even if there is no actual content.
- **Set Borders**: Add border styles to the table to enhance the boundary of cells and prevent them from disappearing during rendering.

**Example**:

In the Excel template, set a light gray background for all target cells and insert a space in empty cells.

### 2. Merged Cells Are Ineffective in Output

**Issue Description**: When using loop functions to output tables, if merged cells exist in the template, it may cause rendering anomalies such as loss of merging effects or data misalignment.

**Solutions**:

- **Avoid Using Merged Cells**: Try to avoid using merged cells in tables output by loops to ensure correct data rendering.
- **Use Center Across Columns**: If text needs to be centered across multiple cells, use the "Center Across Columns" function instead of merging cells.
- **Limit Merged Cell Locations**: If merged cells must be used, merge cells only at the top or right side of the table to prevent loss of merging effects during rendering.

**Example**:

**Incorrect Example**:

| Name | Department | Position |
|---|---|---|
| {d.staffs[i].name} | {d.staffs[i].department} | {d.staffs[i].position} |
| {d.staffs[i+1].name} | {d.staffs[i+1].department} | {d.staffs[i+1].position} |

*Merging cells in the "Department" column may cause rendering anomalies.*

**Correct Example**:

| Name | Department | Position |
|---|---|---|
| {d.staffs[i].name} | {d.staffs[i].department} | {d.staffs[i].position} |
| {d.staffs[i+1].name} | {d.staffs[i+1].department} | {d.staffs[i+1].position} |

*Keep each cell independent and avoid merging cells.*
60 changes: 2 additions & 58 deletions docs/zh-CN/handbook/action-template-print/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2396,6 +2396,8 @@ three = "unknown"

---



## 常见问题与解决方案

### 1. Excel 模板中的空列和空单元格在渲染结果中消失
Expand Down Expand Up @@ -2493,61 +2495,3 @@ three = "unknown"
- **检查文件格式**:确保上传的模板文件为 `.docx`、`.xlsx` 或 `.pptx` 格式。
- **压缩文件大小**:如果文件过大,尝试压缩模板文件或优化模板内容,减少文件大小。
- **稳定网络连接**:确保网络连接稳定,再次尝试上传操作。



## 总结

模板打印插件提供了强大的功能,支持多种文件格式的模板编辑与动态数据填充。通过合理配置和使用丰富的模板语法,可以高效地生成各类定制化文档,满足不同业务需求,提升工作效率和文档质量。

**关键优势**:

- **高效性**:自动化数据填充,减少手动操作,提高工作效率。
- **灵活性**:支持多种模板格式和复杂的数据结构,适应多样化的文档需求。
- **专业性**:格式化器和条件输出等功能,提升文档的专业度和可读性。

## 常见问题

### 1. Excel 模板中的空列和空单元格在渲染结果中消失

**问题描述**:在 Excel 模板中,如果某个单元格没有内容或样式,渲染时可能会被去除,导致最终文档中缺失该单元格。

**解决方法**:

- **填充背景色**:为目标区域的空单元格填充背景色,确保单元格在渲染过程中保持可见。
- **插入空格**:在空单元格内插入一个空格字符,即使没有实际内容,也能保持单元格的结构。
- **设置边框**:为表格添加边框样式,增强单元格的边界感,避免渲染时单元格消失。

**示例**:

在 Excel 模板中,为所有目标单元格设置浅灰色背景,并在空单元格中插入空格。

### 2. 合并单元格在输出时无效

**问题描述**:在使用循环功能输出表格时,如果模板中存在合并单元格,可能会导致渲染结果异常,如合并效果丢失或数据错位。

**解决方法**:

- **避免使用合并单元格**:尽量避免在循环输出的表格中使用合并单元格,以确保数据的正确渲染。
- **使用跨列居中**:如果需要文本在多个单元格中横向居中,可以使用“跨列居中”功能,而不是合并单元格。
- **限制合并单元格的位置**:若必须使用合并单元格,请仅在表格的上方或右侧进行合并,避免在下方或左侧合并,以防渲染时合并效果丢失。

**示例**:

**错误示范**:

| 姓名 | 部门 | 职位 |
|---|---|---|
| {d.staffs[i].name} | {d.staffs[i].department} | {d.staffs[i].position} |
| {d.staffs[i+1].name} | {d.staffs[i+1].department} | {d.staffs[i+1].position} |

*如果在“部门”列合并单元格,可能导致渲染异常。*

**正确示范**:

| 姓名 | 部门 | 职位 |
|---|---|---|
| {d.staffs[i].name} | {d.staffs[i].department} | {d.staffs[i].position} |
| {d.staffs[i+1].name} | {d.staffs[i+1].department} | {d.staffs[i+1].position} |

*保持每个单元格独立,避免合并单元格。*
Loading