using DocumentFormat.OpenXml.Packaging;
using System;
using DocumentFormat.OpenXml;
using DocumentFormat.OpenXml.Spreadsheet;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp3
{
internal class Program
{
private const string pkname = "CF_РТК";
private const string rtk = "ПК_РТК";
private const string importData = @"расписание";
static void Main(string[] args)
{
using (SpreadsheetDocument mySpreadsheet = SpreadsheetDocument.Open(@"D:\лл\Учителя.csv", false))
{
var sheets = mySpreadsheet.WorkbookPart.Workbook.Sheets;
foreach (Sheets sheetis in sheets)
{
foreach (var attr in sheetis.GetAttributes())
{
if (attr.Value == pkname)
{
;
}
else if (attr.Value == rtk)
{
;
}
else if (attr.Value == importData)
{
;
}
Console.WriteLine("{0}: {1}", attr.LocalName, attr.Value);
Console.ReadKey();
}
}
}
}
public object Result { get; private set; }
}
}