Convert Excel files With Pascal and Total Excel ConverterX

Please, download and install Total Excel 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('ExcelConverter.ExcelConverterX');
  C.Convert('c:\test\source.xlsx', 'c:\test\dest.pdf', '-cPDF -log c:\test\Excel.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.