C#用webbrowser在Form中嵌入并且操作Excel表格,如何让他不提示是否保存并取消保存?
<script type="text/javascript"> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </script> name="google_ads_frame" marginwidth="0" marginheight="0" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-0746388214181358&dt=1176374479171&lmt=1176374479&format=336x280_as&output=html&url=http%3A%2F%2Fnetstart.caotingna.com%2Fitem%2Fwebbrowser-Form-Excel__87246.aspx&ad_type=text&ref=http%3A%2F%2Fwww.baidu.com%2Fs%3Fie%3Dgb2312%26bs%3DWebBrowser%26sr%3D%26z%3D%26cl%3D3%26f%3D8%26wd%3Dc%2523%2BWebBrowser%26ct%3D0&cc=139&u_h=768&u_w=1280&u_ah=734&u_aw=1280&u_cd=32&u_tz=480&u_java=true" frameborder="0" width="336" scrolling="no" height="280" allowtransparency="allowtransparency">
一、首先简要回顾一下如何操作Excel表
先要添加对Excel的引用。选择项目-〉添加引用-〉COM-〉添加Microsoft Excel 9.0。(不同的office讲会有不同版本的dll文件)。
using Excel;
using System.Reflection;
//产生一个Excel.Application的新进程
Excel.Application app = new Excel.Application();
if (app == null)
{
statusBar1.Text = "ERROR: EXCEL couldn't be started!";
return ; <