We will be receiving a file daily from a client that we need to import into Progress. Unfortunately, it's in Excel.
I need to automate the process of saving the file as a csv so that this import can be run with as little input as possible from the user.
From our Progress application, I would like the user to be able to select the .xls file to import, but that's it. Behind the scenes, I want to save the .xls as a .csv or .txt, then import that file.
I currently have this code to open Excel, but this isn't exactly what I want. I don't necessarily want to open Excel, but if I have to, that's fine.
DEF VAR hInstance AS INTEGER NO-UNDO.
{windows.i}
RUN ShellExecute{&A} IN hpApi(0,
"open",
"Excel.exe",
"",
"",
1,
OUTPUT hInstance).
Is there similar code I can use that will SAVE AS, and CLOSE Excel???
Thank you!!
Natalie
I need to automate the process of saving the file as a csv so that this import can be run with as little input as possible from the user.
From our Progress application, I would like the user to be able to select the .xls file to import, but that's it. Behind the scenes, I want to save the .xls as a .csv or .txt, then import that file.
I currently have this code to open Excel, but this isn't exactly what I want. I don't necessarily want to open Excel, but if I have to, that's fine.
DEF VAR hInstance AS INTEGER NO-UNDO.
{windows.i}
RUN ShellExecute{&A} IN hpApi(0,
"open",
"Excel.exe",
"",
"",
1,
OUTPUT hInstance).
Is there similar code I can use that will SAVE AS, and CLOSE Excel???
Thank you!!
Natalie