I followed this process but unable to import the data in page.
Microsoft Dynamics NAV 2017
Microsoft Excel.
Steps:
1. Create a table with fields and populate it with data.
2. Create a excel file which you want to import.
3. A page is created with action button to Import data from excel.
4. A Report is created using Excel Buffer(table id 370) as a Data Item. The report property Processing Only is set to yes. Standard ‘ReadSheet’ function of the table Excel buffer is used to read the data from the Excel file.
5. A function is used to calculate the total number of rows and columns using Excel Buffer table.
6. On the PreReport function of the report we write the following code.
7. In the Insert Data function it initializes the table created in step 1, sets the range from the matching fields and if found it inserts values in the table.
8. To open the Excel file and selection of sheet we write a code in the Request Page in the Report. We use File Management codeunit to upload file.
9. Now run the page and click on the action Import then select the excel file.
0
Answers
Seems like you wanted to show us the screenshots but there are no any. Could you upload them correctly?
Thanks logger for responding...