Home > Back-end >  Delphi how to realize the Excel file PDF file format
Delphi how to realize the Excel file PDF file format

Time:09-23

As title, I tried some methods, success or not, turn the PDF file can't open after
Without the third party controls, without VBA, excuse me, is there any way? With the code conversion file to the specified path

CodePudding user response:

Delphi itself not convert PDF function, without the third party controls, sitting,

CodePudding user response:

Excel 2010 and above comes with export PDF, 2007 need to install a SaveAsPDFandXPS. Exe (less than 1 m, very small)
Const xlPDF=57;
FWorksheet. Saveas (AFile xlPDF);

If 2003 and below), can be installed doPDF virtual printer,
ExcelApp. ActivePrinter:='doPDF v7 in DOP7:';
ExcelApp. ActiveSheet. PrintOut;
  • Related