📄 word_integration.html.svn-base
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="generic.css" />
<title>Microsoft Word integration</title>
</head>
<body>
<h1>Microsoft Word integration</h1>
<p>To launch XML Copy Editor from Microsoft Word, you can use a simple macro. The following macro will open the active document in XML Copy Editor and display the Spelling and Style dialog:</p>
<p><pre>Sub xmlcopyeditor()
On Error GoTo ErrorHandler
Dim cmd As String
Dim app As String
Dim switch As String
Dim doc As String
Dim ruleset As String
Dim filter As String
Dim applicationDir As String
app = Chr(34) _
& "C:\Program Files\XML Copy Editor\xmlcopyeditor.exe" _
& Chr(34)
If Application.Documents.Count <> 0 Then
If ActiveDocument.Path <> "" Then
switch = "-ws"
doc = Chr(34) _
& ActiveDocument.Path _
& Application.PathSeparator _
& ActiveDocument.Name & Chr(34)
ruleset = Chr(34) _
& "Default dictionary and style" _
& Chr(34)
filter = Chr(34) _
& "WordprocessingML" _
& Chr(34)
End If
End If
cmd = app & " " _
& switch & " " _
& doc & " " _
& ruleset & " " _
& filter
Shell cmd, vbNormalFocus
On Error GoTo 0
Exit Sub
ErrorHandler:
MsgBox "Unable to open XML Copy Editor"
End Sub</pre></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -