1

Okay, so what I want to do is upload an excel sheet and display it on my website, in html. What are my options here ? I've found this xlrd module that allows you to read the data from spreadsheets, but I don't really need that right now.

2 Answers 2

4

Why don't you need xlrd? It sounds like exactly what you need.

Create a Django model with a FileField that holds the spreadsheet. Then your view uses xlrd to loop over the rows and columns and put them into an HTML table. Job done.

Possible complications: multiple sheets in one Excel file; formulas; styles.

Sign up to request clarification or add additional context in comments.

1 Comment

xlrd may not be able to handle .xlsx (compressed) excel files natively. Though, there may be some .xlsx => .xls conversion scripts floating around somewhere.
0

Use Zoho Viewer in your template.
For example:

<iframe src="http://viewer.zoho.com/api/urlview.do?url=http://www.iasted.org/conferences/formatting/Presentations-Tips.ppt&embed=true"
        style="width:300px; height:300px;" frameborder="0">
</iframe>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.