C# 中将word文档转换为tif文件的方法(2)_C/C++语言_黑客防线网安服务器维护基地--Powered by WWW.RONGSEN.COM.CN

C# 中将word文档转换为tif文件的方法(2)

作者:黑客防线网安C/C++教程基地 来源:黑客防线网安C/C++教程基地 浏览次数:0

本篇关键词:文件方法转换文档
黑客防线网安网讯:    ref varMissing, ref varMissing,                                                                 ref varMissing, ref varMissing, ref varMissing, ref varMissing, ref varMissi...

    ref varMissing, ref varMissing,
                                                                ref varMissing, ref varMissing, ref varMissing, ref varMissing, ref varMissing)
 varDoc.Activate();     //激活文档
                object PrintToFile = true;

                //打印成tif文件
                varDoc.PrintOut(ref varMissing, ref varMissing, ref varMissing, ref OutputFileName, ref varMissing,
                                ref varMissing, ref varMissing, ref varMissing, ref varMissing, ref varMissing, ref PrintToFile,
                                ref varMissing, ref varMissing, ref varMissing, ref varMissing, ref varMissing, ref varMissing, ref varMissing);
                object saveChange = WdSaveOptions.wdSaveChanges;          //关闭word文档时不打开新窗体
                varDoc.Close(ref saveChange, ref varMissing, ref varMissing);   //关闭word文档
                varWord.Quit(ref varMissing, ref varMissing, ref varMissing);   //退出Word
            }
            catch (Exception ex)
            ...{
                throw new Exception(ex.Message);
            }
   }
        /**//// <summary>
        /// 将无后缀名的生成文件重命名为tif文件
        /// </summary>
        /// <param name="filePath">生成的无后缀名的文件路径</param>
        public void ReNameToTif()
        ...{
            string newTifPath = "";
            if (File.Exists(tifPath))
            ...{
                newTifPath = tifPath + ".tif";
                File.Move(tifPath, newTifPath);
            }
        }
    }

    黑客防线网安服务器维护方案本篇连接:http://www.rongsen.com.cn/show-15162-1.html
网站维护教程更新时间:2012-04-04 22:51:05  【打印此页】  【关闭
我要申请本站N点 | 黑客防线官网 |  
专业服务器维护及网站维护手工安全搭建环境,网站安全加固服务。黑客防线网安服务器维护基地招商进行中!QQ:29769479

footer  footer  footer  footer