C#????Word???
???????????? ???????[ 2013/11/21 13:57:15 ] ????????
private void createWord()
{
strFileName = System.Windows.Forms.Application.StartupPath + "test.doc";
if (System.IO.File.Exists((string)strFileName))
System.IO.File.Delete((string)strFileName);
Object Nothing = System.Reflection.Missing.Value;
myWordDoc = myWordApp.Documents.Add(ref Nothing?? ref Nothing?? ref Nothing?? ref Nothing);
#region ????????ж????????д??word?????
strContent = "???nnr";
myWordDoc.Paragraphs.Last.Range.Text = strContent;
strContent = "??????????";
myWordDoc.Paragraphs.Last.Range.Text = strContent;
#endregion
//??WordDoc????????????????DOC???
myWordDoc.SaveAs(ref strFileName?? ref Nothing?? ref Nothing?? ref Nothing?? ref Nothing?? ref Nothing?? ref Nothing?? ref Nothing?? ref Nothing?? ref Nothing?? ref Nothing?? ref Nothing?? ref Nothing?? ref Nothing?? ref Nothing?? ref Nothing);
//???WordDoc???????
myWordDoc.Close(ref Nothing?? ref Nothing?? ref Nothing);
//???WordApp???????
myWordApp.Quit(ref Nothing?? ref Nothing?? ref Nothing);
this.richTextBox1.Text = strFileName + "rn" + "???????";
}
private void openWord()
{
fontDialog1.ShowDialog();
System.Drawing.Font font = fontDialog1.Font;
object filepath = "D:asp.docx";
object ??Missing = System.Reflection.Missing.Value;
myWordDoc = myWordApp.Documents.Open(ref filepath?? ref oMissing?? ref oMissing?? ref oMissing?? ref oMissing??
ref oMissing?? ref oMissing?? ref oMissing?? ref oMissing?? ref oMissing?? ref oMissing??
ref oMissing?? ref oMissing?? ref oMissing?? ref oMissing?? ref oMissing);
myWordDoc.Content.Font.Size = font.Size;
myWordDoc.Content.Font.Name = font.Name;
myWordDoc.Save();
richTextBox1.Text = myWordDoc.Content.Text;
myWordDoc.Close(ref oMissing?? ref oMissing?? ref oMissing);
myWordApp.Quit(ref oMissing?? ref oMissing?? ref oMissing);
}
}
|
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
???????C#?е?StringC# Socket???????????????????C#?????????????????????????C#???????C#????????????Log4net??????δ????C#?????????????C#?????????????????C#???????????????C#????????????????C#7 ?е?Tuple??????C#??TypeScript - GeneratorC# ?????????細??????????C#?е???н???C#??MySQL?????????μ??Ч?????д??C#????C++??dll???C#??VS2010????е??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????