MS Worddocument *.doc and RVofficeConverter

General TRichView support forum. Please post your questions here
Post Reply
Jmich
Posts: 19
Joined: Mon Apr 30, 2007 10:10 am

MS Worddocument *.doc and RVofficeConverter

Post 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
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Jmich
Posts: 19
Joined: Mon Apr 30, 2007 10:10 am

Post 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
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Please send me this doc file.
Jmich
Posts: 19
Joined: Mon Apr 30, 2007 10:10 am

Post by Jmich »

Hi Sergey,

Doc you have the file sent.

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

Best Regards
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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...
Jmich
Posts: 19
Joined: Mon Apr 30, 2007 10:10 am

Post 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
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I'll send when I return from vacations
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

This fix (loading headers saved in RTF by Word 2007) is included in v11.0.7
Post Reply