Problem with 'Export data from Excel to Nested Class Objects' example

Hey,

The lines: 

IWorkbook workbook = application.Workbooks.Open("Sample.xlsx");
workbook.SaveAs("NestedClassObjects.xlsx");

are causing errors. They say Argument 1 cannot convert from string to system.io.stream.

Thanks

Paul

1 Reply

KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team September 1, 2020 07:02 AM UTC

Hi Paul, 

Greetings from Syncfusion. 

We suspect that you are using .NET Standard assemblies/packages of Syncfusion in your application. If so, you can open or save the file in the form of stream only. Kindly look into the following links to know more about, opening or saving a file as stream. 


If you wish to open and save the file as string, we suggest you to use WPF assemblies/packages in you application.  

Please look into the following link to know more about platform specific Assemblies/NuGet packages required in your application to work with Excel files using XlsIO. 

Regards, 
Keerthi. 


Loader.
Up arrow icon