Hi there!
I'm really interested, where I can find methods or demo to get c#-code template from loaded Excel-file? In other words: I need to open any Excel and should get C#-code-spire.xls, to see how document is made.
Thanks in advance!
Workbook workbook = new Workbook();
workbook.LoadFromFile("FilePath",ExcelVersion.Version2013);
Betsy.jiang wrote:Hi,
Thanks for your inquiry.
Below is code for loading Excel file.
- Code: Select all
Workbook workbook = new Workbook();
workbook.LoadFromFile("FilePath",ExcelVersion.Version2013);
Besides, you could download Spire.XLS Pack Version:8.0 and install it on your computer. Then you could find many live demos in it.
And here is the guidance for Spire.XLS on our website.
https://www.e-iceblue.com/Tutorials/Spi ... ntent.html
If you still have issues, please provide more information and write back to us.
Sincerely,
Betsy
E-iceblue support team
var workbook = new Workbook();
workbook.Worksheets.Add(....);
workbook.Worksheets[0].Range[....].Text = "Some text";
RichText richText = newSheet.Range["A1"].RichText;
richText.Text = "ID";
richText.SetFont(0, richText.Text.Length - 1, fontBold);
Betsy.jiang wrote:Hi,
Sorry that I misunderstood your meaning.
Please provide your template file. Then I will look into it and then provide the code for generating the file.
Sincerely,
Betsy
E-iceblue support team