English 中文(简体)
显示浏览器中作为网络内容的xls文档数据
原标题:display .xls file data in a browser as a web content

我试图将xls文档数据显示为网络内容。

这件事在我的计算机中都有一个Xls文档,其中一把Xls文档中的所有数据篡改,一是希望其中的数据在浏览器中显示,以便其他数据在网页上看到内容。

我正在用一个 j子来规划这一点,谁能帮助我这样做? i 几乎尝试了所有可能的途径和许多地点有关这种程序的所有职位,但与我的想法毫无关系。 如果有人让我摆脱了这一问题,我真心实意地想起。

问题回答

你们几乎肯定需要做这一转变服务器。 客户栏目将trick缩,如果不是不可能的话,因为XLS文件不是超文本,因此无法有<代码><script>的标签。 你可能将特别安全等级纳入一个框架,并将联合材料投入运作,但如果影响可能给与工作带来痛苦,并以超文本形式加以解释(我的理解是)。 即使这项工作能够干净,但它仍然像客户对原始文件的处理一样,是一种好的想法。

因此,第一步是调查哪些服务器技术(例如JSP )。 第二步是,为这些技术之一找到一个能够开放和阅读XLS文件(并非简单的任务)的图书馆。 接下来的第三步是写必要的法典,以开放你的专业和专业技能调查档案,提取必要的信息并作为超文本的产出。 (这可能有助于把这一第三步作为转换<>/em>的XLS投入到超文本产出中,这正是你试图做的事。)

是否将Xls作为Excel的超文本文件加以拯救?

唯一知道的办法是将档案作为单机标的单证来源,但截至第5版,这一内容将从超文本中删除。 无论如何,你的浏览器必须支持将这些文件展示在你的浏览器窗口中。

这里是一条关于如何进口Excel至可计量的仪器。 利用这一极好的Excel C#部分应用网络:

private void Page_Load(object sender, System.EventArgs e) { var ef = new ExcelFile(); ef.LoadXls(Server.MapPath("../ExcelData.xls"));

// Initialize DataTable (skip this if you have DataTable definition) var dt = new DataTable(); dt.Columns.Add("name", typeof(string)); dt.Columns.Add("birth", typeof(DateTime));

var ws = ef.Worksheets[0];

// Extract data to DataTable ws.ExtractToDataTable(dt, ws.Rows.Count, ExtractDataOptions.StopAtFirstEmptyRow, ws.Rows[0], ws.Columns[0]);

DataGrid1.DataSource = dt.DefaultView; DataGrid1.DataBind(); }





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!