Page 1 of 1

Problem replacing text

Posted: Tue Mar 22, 2016 9:22 am
by Josef Gschwendtner
Hi,

if we replace the last text/word of a paragraph, we get an error "ZLib decompress error" opening the file again.
Version 1.00.01

Steps:
- open a docx-file with DocxReadWrite
- replace the last word of a paragraph
- save the file
- reopen the file with DocxReadWrite --> error

The file can be opend with word.

Could you please help us with this problem.

Regards,
Josef Gschwendtner

Re: Problem replacing text

Posted: Tue Mar 22, 2016 11:21 am
by larsa
Hello

Can you please post a code sample that reproduce this problem?

Re: Problem replacing text

Posted: Wed Mar 23, 2016 7:45 am
by Josef Gschwendtner
Hello,

we can activate the error with your demo "4-Finding Text".

Steps:
- start DocxRWSampleFindingText
- Load your Sample-File "GutenbergLicence.docx"
- find: "works" (without quotation marks)
- replace: "works good"

The replace seems to work and the file can be opened with MS-Word (showing the replaced text).

But opening the file "GutenbergLicence.docx" again within DocxRWSampleFindingText brings the error.

Regards,
Josef

Re: Problem replacing text

Posted: Tue Mar 29, 2016 1:02 pm
by Josef Gschwendtner
Hi,

could you please answer me, wether you could reproduce this problem.

We are under pressure to serve a solution for our customer.

Regards,
Josef

Re: Problem replacing text

Posted: Wed Mar 30, 2016 11:24 am
by larsa
Hello

Sorry, I could not reproduce the error.

Please provide a code sample that reproduces the error. There are too many things that can go wrong when trying to follow instructions as yours above.