Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

asp.netÖвÙ×÷ExcelÈ«¼¯[1]

         Ê×ÏÈÔÚ Web.Config ÖÐÌí¼ÓÄ£ÄâÕʺÅ
 
<identity impersonate="true" userName="administrator"password="password" />
 
         Æä´Î ÒªÌí¼Ó EXCEL com ×é¼þ¡£Èç¹ûÊÇEXCEL2003,ÔòÌí¼Ó EXcel library 11.0 °æ±¾¡£ÎÒ°ÑÓõ½µÄÒýÓÃÍ·ÎļþÁоÙÈçÏ£º
 
        private Excel.Application objApp;
       private Excel.Sheets objSheets;
       private Excel._Worksheet objSheet;
       private Excel.Range range;
      objApp = new Excel.Application();
      objSheet = (Excel._Worksheet)objSheets.get_Item(1);
 
          ÎÒ½Ó×Å°Ñ´ó¼Ò±à³ÌÖÐÓõ½µÄº¯ÊýÁоÙÈçÏ£º
 
using System;
using System.IO;
using System.Text;
using System.Data;
using System.Reflection;
using System.Diagnostics;
using System.Collections;
 
 
namespace TEST.EXCEL
 
{
 /// <summary>
 /// ˵    Ã÷£ºExcelÊä³ö´òÓ¡Ä£¿é
 ///     ÔÝʱ²»Ìṩ²Ù×÷Excel¶ÔÏóÑùʽ·½·¨£¬Ñùʽ¿ÉÒÔÔÚExcelÄ£°åÖÐÉèÖúÃ
 /// ×÷    Õߣº
 /// ´´½¨ÈÕÆÚ£º
 /// ÐÞ¡¡¡¡¸Ä£ºSuper
 /// </summary>
 public class ExcelHelper
 {
  #region ³ÉÔ±±äÁ¿
  private string templetFile = null;
  private string outputFile = null;
  private object missing = Missing.Value;
  private DateTime beforeTime;   //ExcelÆô¶¯Ö®Ç°Ê±¼ä
  private DateTime afterTime;    //ExcelÆô¶¯Ö®ºóʱ¼ä
  Excel.Application app;
  Excel.Workbook workBook;
  Excel.Worksheet workSheet;
  Excel.Range range;
  Excel.Range range1;
  Excel.Range range2;
  Excel.TextBox textBox;
  private int sheetCount = 1;   //Wor


Ïà¹ØÎĵµ£º

ASP.NET


      TextBox Web ·þÎñÆ÷¿Ø¼þΪÓû§ÌṩÁËÒ»ÖÖÏò ASP.NET ÍøÒ³ÖмüÈëÐÅÏ¢£¨°üÀ¨Îı¾¡¢Êý×ÖºÍÈÕÆÚ£©µÄ·½·¨¡£
 
Ò»¡¢±³¾°
TextBox ·þÎñÆ÷¿Ø¼þÊÇÈÃÓû§ÊäÈëÎı¾µÄÊäÈë¿Ø¼þ¡£Ä¬ÈÏÇé¿öÏ£¬¸Ã¿Ø¼þµÄ TextMode ÊôÐÔÉèÖÃΪ TextBoxMode.SingleLine£¬Õ⽫ÏÔʾһ¸öµ¥ÐÐÎı¾¿ò¡£µ«¿ÉÒÔ½« TextMod ......

dzÎöASP.NET Routing¶ÔÇëÇóµÄ²»Í¬´¦Àí

 ÔÚÕâÀïÎÒÃǽ«½²ÊöASP.NET Routing¶ÔÇëÇóµÄ²»Í¬´¦Àí¡£ÎÄÕ½«´Ó´¦Àí»úÖÆ·½Ã濪ʼ½²Æð£¬È»ºó½²Êö¼àÌýµÄ¹ý³Ì¡£Ï£Íû±¾ÎÄÄܶԴó¼ÒÓÐËù°ïÖú¡£
ASP.NET RoutingÊÇÒ»¸öͨÓõÄ×é¼þ£¬Ëü²»Éæ¼°µ½ÈκξßÌåµÄÇëÇó´¦Àí·½Ê½¡£Èç¹ûÄúÐèÒª£¬Ò²¿ÉÒÔ×Ô¼º»ùÓÚËü½øÐпª·¢——ÈçFubuMvcÏîÄ¿¾ÍÊÇÕâô×öµÄ¡£
Ê×ÏÈ£¬Èç¹ûÄúÐèÒªÔÚÏîÄ ......

asp.netÖжàÐÐÎı¾¿ò¸ß¶È×ÔÊÊÓ¦ÄÚÈݵÄÎÊÌâ

 ÔÚÍøÉÏËѲéÁ˺ܾ㬹ØÓÚasp.netÖжàÐÐÎı¾¿ò¸ß¶È×ÔÊÊÓ¦ÄÚÈݵĽâ¾ö·½·¨
<td style="width:700px" align=center valign=top>
        <asp:TextBox runat="server" ID="txtContent" Width=100% ReadOnly=true  Wrap=true TextMode="MultiLine" MaxLength="1073741823" BorderWidt ......

asp.netÖвÙ×÷ExcelÈ«¼¯

Ê×ÏÈÔÚ Web.Config ÖÐÌí¼ÓÄ£ÄâÕʺŠ
<identity impersonate="true" userName="administrator"password="password" />
 
         Æä´Î ÒªÌí¼Ó EXCEL com ×é¼þ¡£Èç¹ûÊÇEXCEL2003,ÔòÌí¼Ó EXcel library 11.0 °æ±¾¡£ÎÒ°ÑÓõ½µÄÒýÓÃÍ·ÎļþÁоÙÈçÏ£º
 
&nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ