Sweet! Thanks Rafael! Mike
-------- Original Message -------- Subject: Re: vfp and open office From: Rafael Copquin <[email protected]> To: [email protected] Date: 8/15/2012 1:02 PM Use the _shellexecute class that ships with VFP 9. It is inside the _environ.vcx Just stick it to your form. Rename it to something more friendly, like "xlslauncher". Then select mycursor copy to c:\data\mycursor type xl5 local cExelFile cExcelFile = 'c:\data\mycursor.xls' thisform.xlslauncher.shellexecute(cExcelFile) If you have OpenOffice installed (and not Excel), it will launch the spreadsheet app that comes with OO and show the spreadsheet. Contrarywise, if you have Excel, it will launch Excel. The same goes for a pdf or doc file. Rafael Copquin El 15/08/2012 10:39 a.m., Paul Hill escribió: > On 14 August 2012 15:03, Stephen Russell <[email protected]> wrote: >> On Mon, Aug 13, 2012 at 11:10 AM, Paul Hill <[email protected]> wrote: >>> I have had some success with C# and Open Office. >>> >> ------------------- >> >> What are you doing with Open Office? Spreadsheets or text documents? >> >> I have a few little things that I was considering returning in either >> and was looking for a non OFFICE solution. > Spreadsheets only for now. > > To familiarise myself I just tried an export into OO and my app > crashes spectacularly. > Something about the wrong version of the Dot Net framework (event > though I have the lines in my app.config to avoid this). > > I guess I broke something along the way... > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

