Esempio n. 1
0
        private void button8_Click(object sender, EventArgs e)
        {
            //tbResultData.Text = MSWord.ModifyMSWordDoc(@"F:\Dropbox\Project\DOCX", "*.docx");
            var returnList = DirectoryFileIOOperations.GetFileNamesinList(@"F:\Dropbox\Project\DOCX - Copy", "*.docx");

            foreach (var item in returnList)
            {
                tbResultData.Text += item.ToString();
                tbResultData.Text += Environment.NewLine;
                MSWord.ModifyMSWordDoc(item);
            }
        }
Esempio n. 2
0
        private void button9_Click(object sender, EventArgs e)
        {
            var returnList = DirectoryFileIOOperations.GetFileNamesinList(@"F:\Dropbox\Project\DOCX - Copy", "*.docx");

            foreach (var item in returnList)
            {
                int counter = 1;
                tbResultData.Text += "[" + counter + "] " + item.ToString();
                tbResultData.Text += Environment.NewLine;
                //MSWord.ModifyMSWordDoc(item);
                MSWord.PrintWordDocument(item);
                Thread.Sleep(5000);
                counter++;
            }
        }