Convert HTML files With Pascal and Total HTML ConverterX

Please, download and install Total HTML ConverterX. Using the sample code below you will be able to convert XLS to PDF, DOC, TXT, etc.

 

  Example Pascal:

uses Dialogs, Vcl.OleAuto;

var
  c: OleVariant;
begin
  c:=CreateOleObject('HTMLConverter.HTMLConverterX');
  C.Convert('c:\test\source.pas', 'c:\test\dest.pdf', '-cPDF -log c:\test\HTML.log');
  IF c.ErrorMessage Then
    ShowMessage(c.ErrorMessage);
end;
If you need examples on other languages please contact us. We will create any example specially for you.