广告
广告
Text and Type Text objects 40
For myRowCounter = 1 To myTable.Rows.Count
myTextFile.write "<tr>"
For myColumnCounter = 1 To myTable.Columns.Count
If myRowCounter = 1 Then myString = "<th>" & myTable.Rows.Item
(myRowCounter).Cells.Item(myColumnCounter).
Texts.Item(1).Contents & "</th>"
Else myString = "<td>" & myTable.Rows.Item
(myRowCounter).Cells.Item(myColumnCounter).
Texts.Item(1).Contents & "</td>"
End If myTextFile.write myString
Next myTextFile.WriteLine "</tr>"
Next myTextFile.WriteLine "</table>"
End If
Next
Next
End If
End If
Rem Close the text file.
myTextFile.Close
End Function
Text objects
The following diagram shows a view of InCopy’s text-object model. There are two main types of text object: layout objects (text frames) and text-stream objects (stories, insertion points, characters, and words, for example). The diagram uses the natural-language terms for the objects; when you write scripts, you will use the corresponding terms from your scripting language:
广告