I have two excel files one contains Invoice data and other is a invoice template i need to automate the process to generate the invoice using the data and invoice template and save it as pdf
can anyone please help me with suggestions and ideas.
Use the Excel Application Scope activity to open the Excel file with invoice data.
Inside this scope, use the Read Range activity to read the data into a DataTable.
Loop through the DataTable:
Use a For Each Row activity to iterate through each row of the DataTable.
Fill in the Invoice Template:
Use the Excel Application Scope activity to open the invoice template Excel file.
Use Write Cell activities to write the data from each row of the DataTable into the corresponding cells in the invoice template.
You can also use the Copy Sheet activity if you need to create a new sheet for each invoice.
Save as PDF:
After filling in the invoice template, use the Save As PDF activity or print the Excel sheet as PDF using the Excel application’s print to PDF feature.
Repeat for each Invoice:
Make sure the filled template is saved as a new file (e.g., using a unique file name like InvoiceNumber_Date.pdf).