You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
695 B
28 lines
695 B
using System;
|
|
using libxl;
|
|
|
|
namespace edit
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
try
|
|
{
|
|
Book book = new BinBook();
|
|
book.load("example.xls");
|
|
Sheet sheet = book.getSheet(0);
|
|
double d = sheet.readNum(3, 1);
|
|
sheet.writeNum(3, 1, d * 2);
|
|
sheet.writeStr(4, 1, "new string");
|
|
book.save("example.xls");
|
|
|
|
System.Diagnostics.Process.Start("example.xls");
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
Console.WriteLine(e.Message);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|