If this is in the wrong place, I apologize. I use ShellExecute only in Delphi, but I am aware that it may not be properly considered part of the language.
I have a program that is supposed to generate a .csv file for an output report. However, my boss wants this file to be printable, which would seem to imply opening the file in a spreadsheet; the simple .csv file wouldn't look very nice if printed out.
On my dev system, the .csv extension is associated with Notepad. Is there some way I can use ShellExecute (or any other call) to force the file to open in Microsoft Excel or OpenOffice Calc instead of opening in Notepad?