Aspose.Words for applications using Delphi 2007

Hi,
we have the license of Aspose.Words for. net and we are trying to use it in Delphi VCL applications.
Do you have any examples in Delphi to help us?
We have to transform a HTML file to PDF format.
The following source code:

procedure TForm1.Button1Click(Sender: TObject);
var
Fs: TFileStream;
Ms: TMemoryStream;
begin
if fileExists(edtpath.text) then
begin
Fs := TFileStream.Create(edtpath.text, fmOPENREAD );
Ms := TMemoryStream.Create();
Ms.LoadFromStream(Fs);
Ms.SaveToFile(edtpath2.text+'teste.html');

License1.SetLicense(ExtractFilePath(Application.ExeName)+'Aspose.Words.lic');

LoadOptions1.LoadFormat := LoadFormat_Html;
Document1(edtpath.text, LoadOptions1);

Document1.Save_2(edtpath2.text+'teste1.pdf', SaveFormat_Pdf);

FreeAndNil(Ms);
FreeAndNil(Fs);
end;
end;

Hi,


Thanks for your inquiry. Unfortunately, at the moment we do not have an example in Delphi for you; however, we will be sure to improve Aspose.Words’ documentation in the future and add Delphi examples. Moreover, it would be easier, if you create a simple wrapper class which will allow you to work with Aspose.Words. In this case, you will write all code in .NET class library and call only one method of this library from your COM application. Please refer to the following section of the documentation which outlines everything you need to know about using Aspose.Words for .NET via COM Interop:
http://www.aspose.com/docs/display/wordsnet/Use+Aspose.Words+for+.NET+via+COM+Interop

Best regards,