Example #1
0
        //парсер деклараций в Word
        private void btnLoadWord_Click(object sender, EventArgs e)
        {
            OpenFileDialog dlg = new OpenFileDialog();

            dlg.RestoreDirectory = false;
            dlg.InitialDirectory = Path.GetDirectoryName(Application.ExecutablePath);            // +@"Data\Data_Mintrud";

            if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                string csv_file = Path.Combine(Path.GetDirectoryName(dlg.FileName), ".csv");
                string xml_file = Path.Combine(Path.GetDirectoryName(dlg.FileName), "_Минобрнауки - подведы.xml");
                //clsWordWr.Open2(dlg.FileName, csv_file, xml_file);
                //clsWordWr.ReadPositionAndInstitution(dlg.FileName, csv_file, xml_file);
                clsWordWr.ReadSubOrganizations(@"d:\Workdir2\Transparency\Data\_Рособрнадзор-вузы.xml", dlg.FileName, xml_file, csv_file);
                tstripInfo.Text = "Готово";
            }
        }