Hi,
Could you please help me?
I am using Aspose.Words .Net.
I want in Delphi7 create a new document but not to open an existing one.
var
Hlp: TComHelper;
Doc: _Document;
DB: TDocumentBuilder;
l8087CW: Word;
begin
Hlp := TComHelper.Create(Nil);
Doc := Hlp.Open(‘myDoc.doc’); // How To Create new document ???
DB := TDocumentBuilder.Create(Nil);
DB.Document := Doc;
DB.MoveToDocumentStart;
DB.Write(‘Hello’);
try
l8087CW := Default8087CW;
Set8087CW($133f);
Doc.Save(‘OutputDocs/myDoc.odt’);
finally
Set8087CW(l8087CW);
end;