no response for iPad to show excel cell data

前端 未结 1 689
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-16 02:12

I would like to read the excel file from my project folder at Xcode 5.1.1 using QZXLSReader Framework. When it comes to the execution. it does not work and show the required

相关标签:
1条回答
  • 2021-01-16 02:57

    I was using this framework, and not problems to show it,

    I used:

    NSUrl* url = [NSURL fileURLWithPath:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"NameOfXls.xls"]]; // caminho do xls
    
    QZWorkbook* excelReader = [[QZWorkbook alloc] initWithContentsOfXLS:url]; // pega o workbook
    QZWorkSheet* firstWorkSheet = excelReader.workSheets.firstObject; // pega a primeira worksheet daquele workbook
    [firstWorkSheet open];
    
    NSLog(@"%@",firstWorkSheet.rows); // to show all rows, is obvious have some nulls values, check the output
    
    0 讨论(0)
提交回复
热议问题