TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: report system, Excel or HTML?

5 点作者 jacktang超过 15 年前
Hi Developers &#38; Designers<p>I am a Rubist and now working on one report system, and decided to using excel(and template) to build the report, I chose the excel template because of two:<p>1. let the end user design the report by excel 2. let end user print the report in excel<p>but the problem is that it is hard to deal with the report with huge data, and now I want to choose raw HTML, the long report can be easy handled by adding pagination. And do you know any clean HTML report available on www?<p>Thanks!

5 条评论

jwallz超过 15 年前
You need to do both. dump the report to a page in html with pagination and have an export to excel button. For file export do it as tab delimited with a .xls extension.
nailer超过 15 年前
What specifically is the problem? Are you likely to have more than 65K rows?<p>If not, Python's xlwt and xlrd modules handle support for native Excel in a very simple, OO, pythonic way, without any scary Windows or COM shit. I regularly generate and parse pretty big Excel files most days so I'd be happy to answer any questions.
clscott超过 15 年前
If you render the report as an HTML document and serve it with a mime-type of application/vnd.ms-excel the users system will prompt them open it in excel.<p>Excel will parse it with all of the nice formatting and everything!
评论 #1004943 未加载
yannis超过 15 年前
For reports (people like to print them), I normally use<p>(a) pdf (b) HTML<p>In that order!<p>If anyone needs excel I give them comma delimited for import!
评论 #1004697 未加载
wendroid超过 15 年前
Like choosing which bullet to get shot by.