using System; using System.Collections.Generic; using System.IO; using System.Text; namespace BeWo.Service.Core { [Serializable] public class ExcelDownload { private string[][] _Content; private string[] _Header; public ExcelDownload(string[] pHeader, string[][] pContent) { this._Header = pHeader; this._Content = pContent; } public ExcelDownload() { } public string[][] Content { get { return this._Content; } set { this._Content = value; } } public string[] Header { get { return this._Header; } set { this._Header = value; } } public string CreateExcelOutputString() { var lSb = new StringBuilder(); lSb.Append(""); lSb.Append(""); lSb.Append("
"); lSb.Append("| "); lSb.Append(iHeader); lSb.Append(" | "); } index++; } lSb.Append("
| "); lSb.Append(t1); lSb.Append(" | "); } index ++; } lSb.Append("