WP8 supports opening up office in read-only mode with your files. In order to do that you'll need to activate Excel's app2app file extension. The excel office app is registered to the XLS and XLSX file extensions.
To send Office files you'll first need write the complete file into Isolated Storage. Once the file is in IsolatedStorage send it over to office by using Launcher.LaunchFileAsync()
.
private async void LaunchExcel(object sender, RoutedEventArgs e)
{
var file = await ApplicationData.Current.LocalFolder.CreateFileAsync("myExcelFile.xlsx");
using (var s = await file.OpenAsync(FileAccessMode.ReadWrite))
using (var dw = new DataWriter(s))
{
dw.WriteString("hello world");
}
await Launcher.LaunchFileAsync(
await ApplicationData.Current.LocalFolder.GetFileAsync("myExcelFile.xlsx"));
}
I'm not sure if the XLS format the article you linked to is actually supported by office on WP8. If it's not consider using the ClosedXML OSS project to generate an XLSX office open XML @ http://closedxml.codeplex.com/
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…