Format export
This commit is contained in:
Родитель
5e98e36bab
Коммит
cfb5b123a8
|
@ -170,6 +170,21 @@ namespace MicroStationTagExplorer
|
|||
Excel.Range range = ws.Range[start, end];
|
||||
|
||||
range.Value = values;
|
||||
|
||||
ws.Rows["2:2"].Select();
|
||||
app.ActiveWindow.SplitColumn = 0;
|
||||
app.ActiveWindow.SplitRow = 1;
|
||||
app.ActiveWindow.FreezePanes = true;
|
||||
|
||||
ws.Range[ws.Cells[1, 1], ws.Cells[1, 1]].CurrentRegion.Select();
|
||||
app.Selection.AutoFilter();
|
||||
|
||||
ws.Columns[1].Resize(Type.Missing, 6).Select();
|
||||
ws.Columns[1].Resize(Type.Missing, 6).EntireColumn.AutoFit();
|
||||
|
||||
ws.ListObjects.AddEx(Excel.XlListObjectSourceType.xlSrcRange, range, null, Excel.XlYesNoGuess.xlYes).Name = "Tags";
|
||||
|
||||
ws.Range["A1"].Select();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче