#region 预览Excel
///
///预览Excel///
public string PreviewExcel(string physicalPath, stringurl)
{
Microsoft.Office.Interop.Excel.Application application= null;
Microsoft.Office.Interop.Excel.Workbook workbook= null;
application= newMicrosoft.Office.Interop.Excel.Application();object missing =Type.Missing;object trueObject = true;
application.Visible= false;
application.DisplayAlerts= false;
workbook=application.Workbooks.Open(physicalPath, missing, trueObject, missing, missing, missing,
missing, missing, missing, missing, missing, missing, missing, missing, missing);//Save Excel to Html
object format =Microsoft.Office.Interop.Excel.XlFileFormat.xlHtml;string htmlName = Path.GetFileNameWithoutExtension(physicalPath) + ".html";
String outputFile= Path.GetDirectoryName(physical