c#中如何读取word文档,急用!

来源:百度知道 编辑:UC知道 时间:2024/05/22 19:34:35
如何读取word文档和存储word文档!

给你的对文件操作的类吧:
public class FileControl
{
public FileControl()
{

}
/**/
///
/// 在根目录下创建文件夹
///
/// 要创建的文件路径
public void CreateFolder(string FolderPathName)
{
if (FolderPathName.Trim().Length > 0)
{
try
{
string CreatePath = System.Web.HttpContext.Current.Server.MapPath

("../../../Images/" + FolderPathName).ToString();
if (!Directory.Exists(CreatePath))
{
Directory.CreateDirectory(CreatePath);
}
}
catch(Exception ex)
{
throw;
}
}
}

/**