Hello Friends,
Hope you are doing well. I would really appreciated if you could help me with this problem.
I need to save an excel file as pdf document.
I am using “Save Excel File as PDF”
in the tab données, i have a lot of records and i want to save as pdf the information starting from the next tab… which starts at page 261. (please look at next picture below)
To export a specific tab from an Excel file to a PDF document in UiPath, you can follow an alternative approach by using the following steps:
Excel Application Scope: Start by using the “Excel Application Scope” activity to open the Excel file.
Select the Desired Tab: Within the Excel Application Scope, use the “Select Range” activity to specify the tab you want to convert to PDF. This activity allows you to navigate to the desired sheet within the Excel file.
Copy Paste Range: Use the “Copy Selected Range” activity to copy the data from the selected tab.
Write Range: Create a new Excel file (temporarily or permanently) and use the “Write Range” activity to paste the copied data into the new Excel file.
Save as PDF:After pasting the data into the new Excel file, use the “Excel Application Scope” again to open the new Excel file and then use the “Export to PDF” activity from the PDF package to save the entire worksheet as a PDF document.
Optional: Delete Temporary File (if used):*If you created a temporary Excel file in step 4, you can use the “Delete File” activity to remove it after saving the PDF.
Methods suggested doesn’t really imply on modifying the Existing Excel sheet, you could create a copy work on it and then Create the PDF based on that. The original File would remain the same.
Its my wrong. After use excel file use the read range activity to read the excel sheet and save it to a datatable. After that use write range workbook activity to write the datatable to dummy excel file.
After that Use excel file activity and provide the dummy excel file path. Inside this use excel file place the Save excel file as pdf activity.