Page 1 of 1

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

Posted: Wed Jan 04, 2006 11:41 am
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

Posted: Wed Jan 04, 2006 3:38 pm
by Sergey Tkachenko
How do you load doc files?

Posted: Wed Jan 04, 2006 4:47 pm
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

Posted: Thu Jan 05, 2006 9:52 am
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?