my computer doesnt support word document file (*.doc)

General TRichView support forum. Please post your questions here
Post Reply
ibr_ozdemir
Posts: 5
Joined: Wed Jan 04, 2006 11:13 am

my computer doesnt support word document file (*.doc)

Post by ibr_ozdemir »

hi people
I try to open(import) a *.doc file in TRichView, but it gives error.
Error is : Unable to load graphics conversion filter. Continue with document conversion?

i installed OfficeConversion,
i installed Microsoft Word with all options, but doesnt change anything.

also its working many diffrent computers.

please help
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

How do you load doc files?
ibr_ozdemir
Posts: 5
Joined: Wed Jan 04, 2006 11:13 am

Post by ibr_ozdemir »

i used your "Actions" example and this code

Code: Select all

function TrvActionsResource.IthalEt(RVE: TCustomRichViewEdit): boolean;
var
  od:TOpenDialog;
  oc:TRVOfficeConverter;
begin
  Result:=false;
  od:=TOpenDialog.Create(nil);
  oc:=TRVOfficeConverter.Create(nil);
  try
    oc.ExtensionsInFilter:=true;
    od.Filter:=oc.GetImportFilter;
    if od.Execute and rvActionSave1.CanCloseDoc(frmMMWord.RichViewEdit1) then
    begin
      RVE.Clear;
      RVE.Format;
      RVE.Update;
      RVE.Clear;
      Result:= oc.ImportRV(od.FileName, rve, od.FilterIndex-1);
      if Result then
      begin
        rve.Format;
        rve.SetFocus;
      end
      else
        Application.MessageBox('Import File Error','Error');
    end;
  finally
    od.Free;
    oc.Free;
  end;
end;
i tried the project diffrent two computer and it works perfect
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

As far as I remember, there are several import converters available for *.doc files. Format of DOC files was changed since Word97, and different converters are required for old and for new DOC files.
May be you choose a wrong converter on this computer?
Post Reply