M
Me
I am parsing documents to convert them to html
parsing the document is done using this code
For Each oWordSection In oWordApp.Selection.Sections
For Each owordPar In oWordSection.Range.Paragraphs
If owordPar.Range.Information(wdWithInTable) = False Then
writeParToHTML iFile, owordPar, flVoorschrift, TOCDepth
flTableFound = False
Else
' we zijn aan een tabel, we schrijven deze in zijn geheel
weg
If flTableFound = False Then
' ok we schrijven de volgende tabel weg
closePrevStyle iFile
iTableCount = iTableCount + 1
writeTableToHTML iFile,
oWordSection.Range.Tables.Item(iTableCount), flVoorschrift
flTableFound = True
Else
' we hebben deze tabel al weggeschreven
End If
End If
Next
Next
My code does work but some documents are parsing really slow.
It seems that I have this problem only when parsing docs containing one or
more tables
The more tables I have got the slower it works.
Does anyone knows what my be the problem and what the solution for this
problem is.
thanks in advance
parsing the document is done using this code
For Each oWordSection In oWordApp.Selection.Sections
For Each owordPar In oWordSection.Range.Paragraphs
If owordPar.Range.Information(wdWithInTable) = False Then
writeParToHTML iFile, owordPar, flVoorschrift, TOCDepth
flTableFound = False
Else
' we zijn aan een tabel, we schrijven deze in zijn geheel
weg
If flTableFound = False Then
' ok we schrijven de volgende tabel weg
closePrevStyle iFile
iTableCount = iTableCount + 1
writeTableToHTML iFile,
oWordSection.Range.Tables.Item(iTableCount), flVoorschrift
flTableFound = True
Else
' we hebben deze tabel al weggeschreven
End If
End If
Next
Next
My code does work but some documents are parsing really slow.
It seems that I have this problem only when parsing docs containing one or
more tables
The more tables I have got the slower it works.
Does anyone knows what my be the problem and what the solution for this
problem is.
thanks in advance