Hello,
I have a need to display several excel 2003 spreadsheets on web site in order to make them available to several users from anywhere. I know you can do a save as to an xml file and post the file on a web server. The problems is only one person can access it at a time. Plus you can't save changes.
My thoughts are you would do something such as open the excel xml into a dataset or xmlDoc or such which I can do. However I can't figure out or find any documentation on how to make the info in the dataset display in a spreadsheet format.
I have found the Office 2003 XML Reference Schemas but I can't find any documentation to do specifcally what I'm trying to do. I though it would be something like this.
DataSet xlsDataSet = new DataSet();
xlsDataSet.ReadXmlSchema(Server.MapPath("excel2003 xml.xsd"));
xlsDataGrid.DataSource = xlsDataSet;
xlsDataGrid.DataBind();
However I get all kinds of errors trying to build this. Complaining about child elements in the xsd file.
What's puzzling, is if I take the XML document and open it in IE via virtual directory, it comes up exactly like I want. I need to figure out how to display it like that when using a dataset, table or whatever to display it.
Then how to allow edited cell info to be passed to the dataset and then flushed back into the file.
Any pointers would be greatly appreciated.