领测软件测试网
%m6r#i:jF'j{F,FT'`B2s~.A:M0\ private void openWord()
0]Q0bf)MPbN {
软件测试技术 门户%H1U5X:fkE/O4M fontDialog1.ShowDialog();
软件测试技术 门户V0c@SW4t~D System.Drawing.Font font = fontDialog1.Font;
e%z'F6vYEb object filepath = "D:\\asp.docx";
软件测试技术 门户oW#I6Z7I:YQ object oMissing = System.Reflection.Missing.Value;
kBJ/Io:j?e[|w myWordDoc = myWordApp.Documents.Open(ref filepath, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
软件测试技术 门户$R@
p/`]vK;L#tO%M ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
软件测试技术 门户'p |:pHJ(r ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing);
软件测试技术 门户-t
o,vE3\_{)l} myWordDoc.Content.Font.Size = font.Size;
软件测试技术 门户6PE"W]h%Poe^;Y myWordDoc.Content.Font.Name = font.Name;
Je7^LD&T9l~ myWordDoc.Save();
软件测试技术 门户W\9lC/d'g:g richTextBox1.Text = myWordDoc.Content.Text;
软件测试技术 门户2iL*Y-v!}W9r+_9j5W C$l_WK.wQvQ1W