In Vista, Office converter is not importing *.doc file

General TRichView support forum. Please post your questions here
Post Reply
laxmikantj
Posts: 17
Joined: Wed Apr 30, 2008 8:07 pm

In Vista, Office converter is not importing *.doc file

Post by laxmikantj »

Hi,

In MS Vista Operating System, Office converter is not allow to import *.doc file.
While importing, it is not showing any filter option for selecting *.doc file which is created using MSWord.

Even I have tried with demo application for Office converter (Delphi 6).

Thanks,

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

Post by Sergey Tkachenko »

Yes, this is a known problem with Office 2007.
Sorry, I do not know why it happens. This converter just refuses to work.
Pieter E.
Posts: 834
Joined: Sun Aug 28, 2005 9:34 am

Post by Pieter E. »

I'm using Vista Business SP1, C++ Builder 2007, MS Office 2007 SP1, TRichViewEdit v1.9.46 and TRVOfficeConverter without any problems.

The following source works:

Code: Select all

OpenDialog1->Filter = "RTF files|*.rtf|" + rvc->GetImportFilter();
if(OpenDialog1->Execute())
  {
    rve->Clear();
    rve->Format();
    rve->Update();
    rve->Clear();
    if(OpenDialog1->FilterIndex == 1)
      {
        rve->LoadRTF(OpenDialog1->FileName);
      }
    else  
      {
        rvc->ImportRV(OpenDialog1->FileName, rve, OpenDialog1->FilterIndex - 2);
      }
  rve->Format();
  rve->Modified = true;
  rve->SetFocus();
}
My application shows a list of RTF, DOCM, WPS, DOCX and DOC files. Importing these files work perfectly.
Sergey Tkachenko
Site Admin
Posts: 17254
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Sorry, I was wrong. The problem is with Word2007's DOC export converters, not with import converters. They should work fine.
Probably you just use wrong converter for this type of files.
There are two DOC files of different formats:
- Word 6/95 doc files;
- Word 97 and newer doc files.
The proper converter must be used for them.
And there is the 3d type of DOC files possible: RTF file with *.doc extension. Such files are saved by the "Word 6.0/95" export converter.
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Post by Marsianin »

Yeah, I made a topic with this problem long time ago (export problem).
As I can see there is no solution yet?
Sergey Tkachenko
Site Admin
Posts: 17254
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

No, the new DOC export converters just report error when functions from them are called. They either require some special (the most probably undocumented) settings, or they check if they are called from Word or not.
But again, this problem occurs only for export converters for *.doc files.
Post Reply