Reputation: 169
is there any special way to load .xlsb (excel binary format) on UIwebview. I can load .xlsx as below but not .xlsb.
NSString *path = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
path=[[path stringByAppendingString:@"/"]stringByAppendingString:@"myFile.xlsx"];
NSURL *url=[NSURL URLWithString:[path stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[self.webPage loadRequest:requestObj];
Upvotes: 2
Views: 1010
Reputation: 638
Unfortunately, UIWebView does not support xlsb files, only xlsx files are supported. For further reference, Apple listed all supported document types here: https://developer.apple.com/library/ios/qa/qa1630/_index.html
Upvotes: 3