user1241091
user1241091

Reputation: 1391

How can I display xlsx file in an iframe

I need to display excel files(xls, xlsx) in an iframe. Is this possible? If so, how would I do this?

Upvotes: 1

Views: 2336

Answers (2)

vikas95prasad
vikas95prasad

Reputation: 1332

Other solution would be to convert the file to pdf and display it in the iframe.

Upvotes: 0

James A Mohler
James A Mohler

Reputation: 11120

Can't really be done. Excel files do not display natively in a browser. iframes, in this context, are just like regular pages. You would have to solve the showing Excel files in a browser problem first.

The closest you could get is to have a program that reads the Excel file and then generates HTML based on its content.

Adobe ColdFusion can do this natively; other languages and platforms may require 3rd party libraries.

Upvotes: 1

Related Questions