//建议使用Word的传真向导
//DocPath:文档位置,WizPath:传真向导所在位置(可以拷贝Word '传真向导.wiz' 到你指定的位置)
uses ComObj;
procedure FaxDoc(const DocPath, WizPath: string);
const
wdAlertsNone = $00000000;
var
WordApp: OleVariant;
begin
WordApp := CreateOleObject('Word.Application');
WordApp.DisplayAlerts := wdAlertsNone;
WordApp.Documents.Open(DocPath);
WordApp.ActiveWindow.View.TableGridlines := not WordApp.ActiveWindow.View.TableGridlines;
WordApp.Documents.Add(WizPath, False, 0);
//WordApp.Visible := True; //是否显示文档
WordApp := Unassigned;
end;