Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am trying to convert a string variable to a workbook variable using Visual Studio C#, but I can't find the solution.

What I have tried:

After looking online and the MSDN, I am still needing this.
Posted
Updated 18-Jan-22 9:13am

See examples here: Dotnetperls Excel[^]

And as Maciej mentioned using a library, see alternatives here:
best-tools-for-creating-an-excel-spreadsheet-with-c[^]
 
Share this answer
 
v2
Comments
Maciej Los 18-Jan-22 15:15pm    
I'm speechless. The shortest answer i've ever seen ;)
5ed!
There's no direct conversion between string and Excel workbook.

If you would like to start programming with Excel, i'd suggest to use EPPlus NuGet packet[^]. This is very fexible (and easy to use) tool.

See:
Advanced Excels With EPPlus[^]
EPPlus Basics and Snippets (Cheatsheet for generating OpenXML Spreadsheet Files using EPPlus)[^]
 
Share this answer
 
Comments
RickZeeland 18-Jan-22 15:29pm    
Amazing!
5ed!
Maciej Los 18-Jan-22 15:31pm    
Thank you, Rick!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900