Convert Excel to Pdf without using market package

Don’t have Excel desktop application. I want to convert an excel file into pdf without using any market package. Is there any way to do using uipath activities?

use vb code

Imports Spire.Xls

Namespace Excel_Worksheet_to_PDF

Class Program

Private Shared Sub Main(args As String ())

Dim workbook As New Workbook()

        ` `workbook.LoadFromFile(` `"Sample.xlsx"` `)`

Dim sheet As Worksheet = workbook.Worksheets(0)

sheet.SaveToPdf( "toPDF.pdf" )

System.Diagnostics.Process.Start( "toPDF.pdf" )

End Sub

End Class

End Namespace

pls initialize this before that

Workbook workbook = new Workbook();

2 workbook.LoadFromFile( "Sample.xlsx" );

Step 2: Get its first worksheet.

1 Worksheet sheet = workbook.Worksheets[0];

Step 3: Convert the selected worksheet to PDF and save to file.

1 sheet.SaveToPdf( "toPDF.pdf" );

Step 4: Launch the file.

1 System.Diagnostics.Process.Start( "toPDF.pdf" );