Always unable to export to MS Word

General TRichView support forum. Please post your questions here
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Post by Marsianin »

And what about support for .DOC natively?
There are no components exists to import/export MS Word DOC natively.
You can make it as optional add-on for additional money...
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

May be, but after DOCX and Open Office formats.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

The problem in saving DOC and DOCX files with Word2007's converters is solved in v11.0.7 (available for registered users).
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Post by Marsianin »

Yeah! Thanks.
But not all images are exported... :roll:
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

May be the converter does not understand all image formats in RTF.
(when exporting, TRichView saved RTF, then a converter converts this RTF to another format, such as DOCX).

You can play with RichView.RTFOptions for better results.
Cosmin3
Posts: 54
Joined: Sat Apr 05, 2008 12:04 pm

Post by Cosmin3 »

Hi Sergey.
I tried to export this rtf file: http://www.megaupload.com/?d=X0OAONTC
Which settings I should use (from RTFOptions) so all images could be exported in doc file...
I tried rvrtfSaveBitmapDefault but it didn't work :(
Could you help me please..?
Thank you in advance.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Cosmin3, as I can see, this file has some metafiles (which are exported to docx) and some bitmaps (which are not).
Unfortunately, TRichView does not have an option to export bitmaps as metafiles to RTF (rvrtfSaveBitmapDefault allows only choosing how to save non-RTF image types, such as TIcon).

I can suggest using PNG for exporting bitmaps. Include PngImage in your project, call RV_RegisterPngGraphic(TPNGObject) (or TPNGImage, depending on your version of Delphi) one time before the first file operation, include rvrtfPNGInsteadOfBitmap in RTFOptions.
Cosmin3
Posts: 54
Joined: Sat Apr 05, 2008 12:04 pm

Post by Cosmin3 »

Seems to work fine now :)
Thank you very much for your help.
pbmissions
Posts: 1
Joined: Mon Dec 07, 2009 7:00 am
Location: Chapel Hill, North Carolina
Contact:

Post by pbmissions »

I thought only I was facing this problem of exporting it to Docx format. Thanks for the guidance, It helped lots.
Joshtaylor
Posts: 1
Joined: Mon Dec 07, 2009 11:22 am
Contact:

Post by Joshtaylor »

Changing it to jpeg helps but it is only temporary. Why does this happen? Is it a bug?
Post Reply