A
Andrey Dzizenko
Hi all!
Maybe someone has met with it before.
I wrote a module that imports a document from MS Word. But it works too
slow.
It's caused by calling get_Information(), used for getting paragraph's
coordinates and defining paragraph's page. This calling takes 0.2 sec. If
there're 100 paragraphs - it takes a minute. Not to mention that situation
when one word style and its paragraph's style differs.
I know a way that allows to avoid get_Information. To parse a text and
calculate its coordinates at runtime basing on char height, char width,
line spacing, margins, tabulations, placed images and ole controls and
more and more - it's not so easy and in addition I need to rewrite all
module for this.
Is there any method to optimize my import without rewriting the whole
module?
Best regards,
A. Dzizenko.
Maybe someone has met with it before.
I wrote a module that imports a document from MS Word. But it works too
slow.
It's caused by calling get_Information(), used for getting paragraph's
coordinates and defining paragraph's page. This calling takes 0.2 sec. If
there're 100 paragraphs - it takes a minute. Not to mention that situation
when one word style and its paragraph's style differs.
I know a way that allows to avoid get_Information. To parse a text and
calculate its coordinates at runtime basing on char height, char width,
line spacing, margins, tabulations, placed images and ole controls and
more and more - it's not so easy and in addition I need to rewrite all
module for this.
Is there any method to optimize my import without rewriting the whole
module?
Best regards,
A. Dzizenko.