Statistic Method

[Top]  [Chapter]  [Previous]  [Next]

Declaration

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);

Description

The method Statistic() can be used to retrieve information about the loaded text.

 

VB6 Example:

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

 

 

Parameters

Mode

bit 1: do not count in body texts

bit 2: do not count in header texts

bit 3: do not count in footer texts

bit 4: do not count in footnotes

bit 5: do not count in text boxes

bit 6: adjacent spaces are counted as one "Character"

Pages

Count of pages

Paragraphs

Count of Paragraphs, also table cells

Lines

Count of lines

Tables

Count of tables

Rows

Count of rows in all tables

Images

Count of Images (but not text boxes)

Words

Count of words

Letters

Count of characters which are not word delimiters

Characters

Count of characters. Optional adjacent spaces are counted as one

Category

Display Status Information


[idh_iwpmemo_statistic.htm]    Copyright © 2007 by WPCubed GmbH