I have problems when I read Microsoft Word documents that have automatic numbering.
The problems are of three types:
Indentation problems: unpredictable, unmanageable (some times indentfirst and indent left work, sometimes not). When I can manage them from WPTools, the next document works different, so the solution in one document doesn't work with the next.
Some numbered paragraphs come without space separating it from the next, if I want to insert a blank paragraph a new automatic number is created.
Sometimes numbering is absurd, for example it begins with 2, not 1. Or there are times when two or more continuos numbered paragraphs have the same number (2. ... / 2. ...)
So, when a Word document is read, I want to change automatic numbered paragraphs for just plain text with numbers.
A desired solution would be:
For each paragraph test to see if it is a numbered paragraph (ele := par.GetNumberStyleEle; // if ( ele <> nil ) then begin ... end😉
If it is a numbered paragraph: 1. read the number (how?); 2. delete the numbering style for the paragraph (how?); 3. Add the former number "manually" at the beginning of the paragraph.
I also would have to know which paragraphs are part of a group to mantain the sequence, or I would have to go first to the last paragraph of a numbered sequence and begin changing numbering with it.
Can I do that? How?
With kind regards,
Carlos Borrero
#3♥ 0
This category is archived. No new posts are possible.