Problem replacing text

Questions and answers on how to use DOCXReadWrite
Post Reply
Josef Gschwendtner
Posts: 17
Joined: Wed Oct 28, 2015 2:16 pm

Problem replacing text

Post 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
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Problem replacing text

Post by larsa »

Hello

Can you please post a code sample that reproduce this problem?
Lars Arvidsson, Axolot Data
Josef Gschwendtner
Posts: 17
Joined: Wed Oct 28, 2015 2:16 pm

Re: Problem replacing text

Post 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
Josef Gschwendtner
Posts: 17
Joined: Wed Oct 28, 2015 2:16 pm

Re: Problem replacing text

Post 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
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Problem replacing text

Post 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.
Lars Arvidsson, Axolot Data
Post Reply