- Jon Stoller
- PowerBuilder
- Thursday, 11 January 2018 04:38 PM UTC
Is there a way to import data from an Excel file into a datawindow through the powerscript code in a window object?
I want to have the user click on a command button, then in the powerscript code the data would be imported into the datawindow.
My application is set up meaning that I already have a datawindow that the columns match the columns in the excel file I want to import from. The excel file will be an xlsx or an xls type file. I can import the data successfully if I go through the Import-Export wizard. However, I don't want the user to have to use the wizard.
Preferably I would like the user to click on the command button and the data will automatically load into the datawindow. If anybody can give me an idea of what to do I would appreciate it.
If I could get an example of what to do, that would be great. Or, if there is a place in the documentation where I can see an example of how to do this, that would be good too.
Thank you in advance
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.