|[Top] [Chapter] [Previous] [Next]|
void Statistic([In] int Mode, out int Pages, out int Paragraphs, out int Lines, out int Tables, out int Rows, out int Images, out int Words, out int Letters, out int Characters);
The method Statistic() can be used to retrieve information about the loaded text.
Dim Pages As Long ' Count of pages
Dim Paragraphs As Long ' Count of Paragraphs, also table cells
Dim Lines As Long ' Count of lines
Dim Tables As Long ' Count of tables
Dim Rows As Long ' Count of rows in all tables
Dim Images As Long ' Count of Images (but not text boxes)
Dim Words As Long ' Count of words.
Dim Letters As Long ' Count of characters which are not word delimiters
Dim Characters As Long ' Count of characters. Optional adjacent spaces are counted as one
WPDLLInt1.Memo.Statistic 0, Pages, Paragraphs, Lines, Tables, Rows, Images, Words, Letters, Characters