asp.net控制word~~~~急 - .NET技术 / ASP.NET
我主要想控制下word保存的地址,但是编译不过去,总觉得是缺了using。。。
谢谢
代码如下:
using System;
using System.IO;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.OracleClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
//-------------------------------------------------
object Missing = Type.Missing;
string strTemp = "doc/test.doc";
string newFileName = "doc/test2.doc";
Application WordApp = new ApplicationClass();
//必须设置为不可见
WordApp.Visible = false;
try
{
//创建以strTemp为模板的文档
object oTemplate = Server.MapPath(strTemp);
Document WordDoc = WordApp.Documents.Add(ref oTemplate, ref Missing, ref Missing, ref Missing);
WordDoc.Activate();//这两个红色的地方都报错,缺少using
//保存为新文件
object oNewFileName = Server.MapPath(newFileName);
WordDoc.SaveAs(ref oNe
相关问答:
有谁能给讲讲,怎么做吗?
谢谢啦!
甘特图 是啥?
解题思路.看一下进度条的显示..
其实你就弄一堆table 每个table的宽度不同.底色不同即可
当然用div控制位置更好
你弄100个table根据进度其中前20个分给� ......
不是直接打开,而是读取内容,然后可以操作的数据,可以存储到数据库或者显示在页面上。
word文件在服务器端。
可以考虑用第三方组件
http://officewriter.softartisans.com/officewriter-372.aspx
有中文说 ......
哪位大哥有没有ASP.NET中利用Cookies实现用户自动登录的代码...谢谢了...越详细越好....
什么意思?自动登录?
mark 貌视是存储cookies 我也对cook比较迷糊 关注下
既然你知道用cookies自己动动大脑多好! ......
<script type="text/javascript" src="js/Dialog.js"></script>
<script type="text/javascript">
function zOpenD()
{
va ......
请问ASP程序员转来做 PHP ,如何实现?
没有任何PHP开发经验,只是自己学习,
请问如何转??
东西还是那些东西,思路还是那些思路,只是换了个api而已,很容易搞定的
难的是想法是思� ......