|
|
@@ -9,8 +9,6 @@ using System.Threading;
|
|
|
using System.Net.Sockets;
|
|
|
using System.Data;
|
|
|
using System.Web.Script.Serialization;
|
|
|
-using NPOI.HSSF.UserModel;
|
|
|
-using NPOI.SS.UserModel;
|
|
|
|
|
|
namespace FileWatcher
|
|
|
{
|
|
|
@@ -70,6 +68,17 @@ namespace FileWatcher
|
|
|
{
|
|
|
for (int i = 0; i < workbook.Worksheets.Count; i++)
|
|
|
{
|
|
|
+ for (int k = 0; k < workbook.Worksheets[i].TextBoxes.Count; k++)
|
|
|
+ {
|
|
|
+ if (workbook.Worksheets[i].TextBoxes[k].RichText.Text.Length > 1)
|
|
|
+ {
|
|
|
+ //OperatResult.AppendText(workbook.Worksheets[i].TextBoxes[k].ID + " " + workbook.Worksheets[i].TextBoxes[k].Name + " " + workbook.Worksheets[i].TextBoxes[k].RichText.GetFont(0).FontName + " " + workbook.Worksheets[i].TextBoxes[k].RichText.GetFont(0).Size);
|
|
|
+ workbook.Worksheets[i].TextBoxes[k].RichText.Text = workbook.Worksheets[i].TextBoxes[k].RichText.Text;
|
|
|
+ workbook.Worksheets[i].TextBoxes[k].Width = workbook.Worksheets[i].TextBoxes[k].Width * 2;
|
|
|
+ workbook.Worksheets[i].TextBoxes[k].Height = workbook.Worksheets[i].TextBoxes[k].Height * 2;
|
|
|
+ workbook.Worksheets[i].TextBoxes[k].HAlignment = CommentHAlignType.Center;
|
|
|
+ }
|
|
|
+ }
|
|
|
Workbook bw = new Workbook();
|
|
|
Worksheet she = bw.CreateEmptySheet();
|
|
|
she.Name = workbook.Worksheets[i].Name;
|
|
|
@@ -90,7 +99,7 @@ namespace FileWatcher
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- Console.WriteLine(ex.Message);
|
|
|
+ OperatResult.AppendText(ex.Message + "\n");
|
|
|
}
|
|
|
}
|
|
|
|