修正readme
This commit is contained in:
parent
e592781419
commit
b4649653d9
|
|
@ -20,11 +20,11 @@ Msgbox ActiveDocument.Paragraphs.Count ' 可用doc/ActiveDocument进行操作
|
||||||
tsl 打开:
|
tsl 打开:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
path = "./default.docx"
|
path := "./default.docx"
|
||||||
application := new TSDocxApplication(); // new一个Application对象
|
application := new TSDocxApplication(); // new一个Application对象
|
||||||
doc = application.Documents.Open(FileName:=path) // 通过application打开文件
|
doc := application.Documents.Open(FileName: path) // 通过application打开文件
|
||||||
doc.Activate; // 激活
|
doc.Activate; // 激活
|
||||||
ActiveDocument = application.ActiveDocument; // 需要通过application属性赋值才能使用ActiveDocument
|
ActiveDocument := application.ActiveDocument; // 需要通过application属性赋值才能使用ActiveDocument
|
||||||
echo ActiveDocument.Paragraphs.Count; // 也可用doc进行操作
|
echo ActiveDocument.Paragraphs.Count; // 也可用doc进行操作
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue