asp.netÖдò¿ªExcelÉÏ´«Îļþ,¶ÁÈ¡Êý¾ÝµÄ·½·¨
´úÂë:
/// <summary>
/// ´ò¿ªExcelÎļþ
/// </summary>
/// <param name="ExcelFileName">ÎļþÃû</param>
private void OpenExcelFile(string ExcelFileName)
{
Excel.Application App = new Excel.Application();
if (App == null)
{
return; //ExcelÉÐδ°²×°
}
Excel.Workbook workbook = App.Workbooks.Open(@ExcelFileName,
Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing);
CultureInfo CurrentCI = System.Threading.Thread.CurrentThread.CurrentCulture;
try
{
App.Visible = false;
App.DisplayAlerts = false;
Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
ProcessExcelData(workbook);
}
finally
{
App.
Ïà¹ØÎĵµ£º
TreeView Web ·þÎñÆ÷¿Ø¼þÌṩÁ˼¸¸ö¿É½øÐбà³ÌµÄʼþ¡£ÕâʹÄúÄܹ»ÔÚ·¢ÉúʼþʱÔËÐÐ×Ô¶¨ÒåÀý³Ì¡£
Ò»¡¢Ê¼þ
Ö»ÓÐÓû§Í¨¹ýһЩ²Ù×÷£¨ÈçÑ¡Ôñ¡¢Õ¹¿ª»òÕÛµþ½Úµã£©Óë¿Ø¼þ½»»¥Ê±£¬²Å»áÒý·¢ TreeView ¿Ø¼þʼþ¡£Èç¹ûÒÔ±à³Ì·½Ê½µ÷ÓÃÑ¡Ôñ¡¢Õ¹¿ª»òÕÛµþ·½·¨£ ......
TreeView ¿Ø¼þ¾ßÓÐÐí¶à²»Í¬µÄÍâ¹Û£¬´Ó¶ø¿ÉÒÔÌṩÁé»îµÄͼÏñ×Ô¶¨ÒåÒÔ¼°Ö¸¶¨×Ô¶¨ÒåÓû§½çÃæ (UI) Ñ¡ÏîµÄÊôÐÔ¡£Äú¿ÉÒÔ½«Í¼ÏñÓë TreeView ¿Ø¼þÒ»ÆðʹÓÃÀ´±íʾ½Úµã¡¢Á¬½ÓÏßÒÔ¼°Õ¹¿ªºÍÕÛµþͼ±ê¡£»¹¿ÉÒÔʹÓà ImageSet ÊôÐÔÖÐÒ»×éÔ¤¶¨ÒåµÄͼÏñ£¬»òÕßͨ¹ýÉèÖø÷¸öͼÏñÊôÐÔÀ´Ê¹ÓÃ×Ô¶¨ÒåͼÏñ¡£
&nbs ......
ASP.NET MVCÊǼÌASP.NET WebFormsÖ®ºó£¬Î¢ÈíÍƳöµÄFront ControllerʽµÄWeb¿ª·¢Ä£ÐÍ£¬ËüÃÖ²¹ÁËÇ°Õ߶ÔHTML¿ØÖÆÄÜÁ¦²»×㣬µ¥Ôª²âÊÔ½ÏΪÀ§ÄѵÈȱµã¡£¸üÖØÒªµÄÊÇ£¬ASP.NET MVC»ùÓÚMS-PL·¢²¼£¬ÊÇÒ»¸öÕæÕýµÄ¿ªÔ´¿ò¼Ü——ÇÒûÓÐÈκÎƽ̨ÏÞÖÆ£¬Ò²¾ÍÊÇ˵£¬Äú¿ÉÒÔÔÚmonoÏÂʹÓûò¿ª·¢ASP.NET MVCµÄÏà¹ØÏîÄ¿¡£ ΢ÈíÔÚ½ñÄê3Ô ......
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("/*\n------Êä³ö½á¹û------------");
getSplit("ABCDEFG"); ......