M
|
Mark Kramer 12/9/2020 |
The deafault behaviour of importing a Excel file seems to be that the whole workbook is imported. Is there any way that I can specify that only a certain (say Worksheet 2) worksheet should be imported? Any advice would be greatly appreciated.
|
![]() |
Sergey Kornilov admin 12/9/2020 |
There is no way to select a certain worksheet while importing. We recommend using Excel file that only have a single worksheet while importing. |
L
|
leon author 12/10/2020 |
There is no way to select a certain worksheet while importing. We recommend using Excel file that only have a single worksheet while importing.
|
![]() |
Sergey Kornilov admin 12/12/2020 |
Well, it is not so much automated if you need to select a correct sheet number. |
D
|
drochel 1/4/2021 |
I once needed a way to import only the first worksheet and was provided this tip. And although it doesn't allow the selection of a specific worksheet, it will work if the worksheet to import is the first worksheet. |
L
|
leon author 1/4/2021 |
I once needed a way to import only the first worksheet and was provided this tip. And although it doesn't allow the selection of a specific worksheet, it will work if the worksheet to import is the first worksheet. [font="Calibri"][size="3"]Open <ASPRunner installationdirectory>\source\include\ImportFunctions.cs file with a text editor.[/size] [font="Calibri"][size="3"]--------------------------[/size] [font="Calibri"][size="3"]{[/size] [font="Calibri"][size="3"]foreach(var worksheet in xlsPack.Workbook.Worksheets)[/size] [font="Calibri"][size="3"].......[/size] [font="Calibri"][size="3"]}[/size] [font="Calibri"][size="3"]--------------------------[/size] [font="Calibri"][size="3"]--------------------------[/size] [font="Calibri"][size="3"]{[/size] [font="Calibri"][size="3"]foreach(var worksheet in xlsPack.Workbook.Worksheets)[/size] [font="Calibri"][size="3"].......[/size] [font="Calibri"][size="3"]break;[/size] [font="Calibri"][size="3"]}[/size] --------------------------[sub][/sub][sup][/sup] |
L
|
leon author 1/4/2021 |
Hi Duane. |
L
|
leon author 1/4/2021 |
Hi Duane, |
![]() |
Sergey Kornilov admin 1/5/2021 |
Duane's advice, unfortunately, only applies to ASPRunner.NET only. I'm afraid that we use completely different libraries to parse Excel in PHP and in ASPRunner.NET. |