static List <Record> MdbReaderDemo(Dictionary <string, Type> settings) { // http://ec.nikkeibp.co.jp/nsp/dl/09412/index.shtml // http://ec.nikkeibp.co.jp/nsp/dl/03634/index.shtml // https://www.vector.co.jp/soft/dl/winnt/business/se469691.html MdbReader reader = new MdbReader( "./03634/第13章/名刺管理13_12.mdb", "会社と部署", settings, Encoding.GetEncoding("Shift-JIS") ); return(reader.Read()); }
public void ReadMdb(ReadMdbArgs args) { var reader = new MdbReader(args.File); if (args.Year == 0) { args.Year = DateTime.Today.AddMonths(-1).Year; } if (args.Month == 0) { args.Month = DateTime.Today.AddMonths(-1).Month; } var data = reader.Read(args.Year, args.Month); var filename = new Writer().Write(data, args.Json); Console.WriteLine($"{filename} wurde erzeugt."); }