-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
excel sheet with xml data #2
Comments
Did you resolve this problem? |
Same here, if anyone had resolved this please let us know the solution for same |
Did anyone find a solution for this? |
Same here :( |
Some of the XML header data needs to be updated. I replaced line 60 os RSworkBook.m (in the writeWithName function) with the following and it corrected the problem for me:
I will try to create a pull request with the fixed code when i get a chance. Good luck! |
by any chance someone got it to work? @timharter the header you provided yields the same results. it just appears as a string. |
Hi guys, sorry for the long time, but i changed my work in this years.. Now that i return to develop on iOS i try to update the library |
thanks a lot for answering :) |
Hi,
This is Bharath.
When I use this RSSheet library into my application, it is saving in .xls format bu when I open it, Its showing complete xml string not .xls
I have used the following code
RSworkBook * folder = [ [RSworkBook alloc] init];
folder.author = @"andrea cappellotto";
folder.version = 1.2;
RSworkSheet * sheet = [[RSworkSheet alloc] initWithName:@"prova"];
RSworkSheetRow * row = [[RSworkSheetRow alloc] initWithHeight:20];
[row addCellString:@"prova"];
[row addCellString:@"prova2"];
[sheet addWorkSheetRow:row];
RSworkSheetRow * row2 = [[RSworkSheetRow alloc] initWithHeight:25];
[row2 addCellNumber:100];
[row2 addCellData:[NSDate date] ];
[sheet addWorkSheetRow:row2];
[folder addWorkSheet:sheet];
NSArray *documentPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDir = [documentPaths objectAtIndex:0];
[folder writeWithName:@"prova" toPath:documentsDir];
Could you please tel me what should I do? I am not getting proper excel sheet
The text was updated successfully, but these errors were encountered: