Page 1 of 1

MS Worddocument *.doc and RVofficeConverter

Posted: Sun Jun 21, 2009 10:43 am
by Jmich
How can a Word document with RVofficeConverter in Richview properly loaded.

So far I have done it since the RVOfficeConverter
text, format and images correctly invites (loaded).

But the problem is the header and footer.


How can the header and footer of a Word document using RVOfficeConverter in RichView appear?

Previous examples have until now not really help.

If it is possible to ask a sample code and proper integration into a unit.

Many thanks in advance.
Best Regards

Jmich

Posted: Sun Jun 21, 2009 5:31 pm
by Sergey Tkachenko
The converters convert file (doc in this case) to RTF. Then this RTF is loaded by TRichView.
There are 2 places where headers may disappear:
1) when converters convert file to RTF
2) when TRichView loads this RTF.
If headers lost on the first step, it is impossible to fix it. If on the second step, we can try to solve this problem.

How to find it out? We need to look at RTF generated by the converter.
Instead of calling converter.ImportRV, call conveter.ImportRTF to load RTF in converter.Stream. Then save to file (by calling MemoryStream.CopyFrom(converter.Stream, 0), and send this file to me.

Posted: Wed Jun 24, 2009 4:51 pm
by Jmich
Unfortunately, I understand the issue is not.

My call is:

LoadDocFile ( 'D: \ Temp \ jm1.doc', Richview1, RVOfficeConverter1);
Richview1.Format;

Text and pictures are displayed, but the header from Worddocument missing.

How can problems be solved?

Best Regards

Posted: Thu Jun 25, 2009 5:09 pm
by Sergey Tkachenko
Please send me this doc file.

Posted: Fri Jul 03, 2009 5:15 pm
by Jmich
Hi Sergey,

Doc you have the file sent.

At svt@trichview.com, but received no reply.

Best Regards

Posted: Sat Jul 04, 2009 9:19 am
by Sergey Tkachenko
Sorry for the delay.

The situation may be different depending on which version of Office is installed. I tested with MS Office 2007.
MS Office 2007 saves headers and footers differently from previous versions of MS Word. TRichView cannot read headers and footers saved by MS Office 2007 yet, and in my test the converter saved headers and footers in MS Office 2007's way.
I changed TRichView so that it can read them. It will be uploaded in the next update. If you need it urgently, I can set it by e-mail.

If you have previous version of MS Office, the problem may be in another place...

Posted: Thu Jul 16, 2009 5:01 pm
by Jmich
Hi Sergey,

how long will it take until a new update (11.06) comes.
Otherwise I would have liked a preliminary version.
Especially for RVOfficeConverter.
I'm registered user of TRichview - please send to my email.

Thanks and best greetings from Germany

Jmich

Posted: Fri Jul 17, 2009 8:38 pm
by Sergey Tkachenko
I'll send when I return from vacations

Posted: Tue Aug 18, 2009 10:06 am
by Sergey Tkachenko
This fix (loading headers saved in RTF by Word 2007) is included in v11.0.7