Please see below screenshot with source code explanation:
Explanation of Source Code (1.1):
- Add / Use following namespaces in the class.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi66tQWmM3BXCqPj1oGBqTlq8Xn7fQrWcGlC029Q9hrj2T0xFDL8Ye3l-AUNp3fNRmqByeKfb7JGthkOCBlyPxCAmD8FHSrU0F9W-REEz6Jf6Vz2uO0J6Fw-wceN9ogWuBidttQJejumZ8/s400/3.jpg)
- Initialize and declare classes and data types.
- Create a dialog object, which will open as form.
- Add controls (Import, Upload and buttons).
Explanation of Source Code (1.3):
- Get and load Excel file.
- Get the row count for record iteration.
- Iterate record and get the columns values on every iteration.
Result:
That is all you need to do for creating a class which imports record from Excel.
Thanks
ReplyDeleteWelcome.
ReplyDeleteI am receiving this error 'Object reference not set to an instance of an object.'
ReplyDeletefileUploadResult = fileUploadControl.getFileUploadResult(); on this line