Convert CSV files With Pascal and Total CSV ConverterX

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

 

  Example Pascal:

uses Dialogs, Vcl.OleAuto;

var
  c: OleVariant;
begin
  c:=CreateOleObject('CSVConverter.CSVConverterX');
  C.Convert('c:\test\source.csv', 'c:\test\dest.pdf', '-cPDF -log c:\test\CSV.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.

Related topics