將 Excel 檔案轉換為 PDF:
使用設定變數動作來建立新的變數,其中包含您要轉換的 Excel 檔案路徑。 在此範例中,變數的名稱為 ExcelFile。
使用第二個設定變數動作來建立變數,其中包含您要建立的 PDF 檔案路徑。 在此範例中,變數的名稱為 PdfFile。
部署執行 VBScript動作,並填入以下程式碼。
Dim Excel Dim ExcelDoc 'Opens the Excel file' Set Excel = CreateObject("Excel.Application") Set ExcelDoc = Excel.Workbooks.open("%ExcelFile%") 'Creates the pdf file' Excel.ActiveSheet.ExportAsFixedFormat 0, "%PdfFile%" ,0, 1, 0,,,0 'Closes the Excel file' Excel.ActiveWorkbook.Close Excel.Application.Quit