Re: [Axapta-Knowledge-Village] Open a file

2010-08-22 Thread Accenter 079-Iin Dewi
0, Sumit Loya wrote: From: Sumit Loya Subject: Re: [Axapta-Knowledge-Village] Open a file To: Axapta-Knowledge-Village@yahoogroups.com Date: Tuesday, August 17, 2010, 8:33 AM   Hi Afin,   Try this out   static void openFile(Args _args) {     #WinApi   

Re: [Axapta-Knowledge-Village] Open a file

2010-08-17 Thread thomas 'znal' ramdhan
Hi Loya, Thanks for replying, it worked :) Thanks and Regards, Afin On Tue, Aug 17, 2010 at 7:33 PM, Sumit Loya wrote: > > > Hi Afin, > > Try this out > > static void openFile(Args _args) > { > #WinApi > str filename = @'C:\Users\sumit.loya\Desktop\Test.docx'; > ; > > WinAPI::s

Re: [Axapta-Knowledge-Village] Open a file

2010-08-17 Thread Sumit Loya
Hi Afin, Try this out static void openFile(Args _args) { #WinApi str filename = @'C:\Users\sumit.loya\Desktop\Test.docx'; ; WinAPI::shellExecute(filename,'','',#ShellExeOpen); } Regards, Sumit On Tue, Aug 17, 2010 at 5:55 PM, thomas 'znal' ramdhan < thomasramd...@gmail.com> wro

Re: [Axapta-Knowledge-Village] Open a file

2010-08-17 Thread thomas 'znal' ramdhan
Hi Nix, Thanks for replying, but what I mean was not the content. I'd like to launch the file from axapta. I've tried code "infoLog.urlLookup ", but the result was return an error. Thanks and Regards, Afin On Tue, Aug 17, 2010 at 2:31 PM, Nix wrote: > > > Hi Afin, > > You can use SYSEXCELAPPLI

Re: [Axapta-Knowledge-Village] Open a file

2010-08-17 Thread Nix
Hi Afin, You can use SYSEXCELAPPLICATION class for opening the excel application on the desktop from AXAPTA. The Code should look something like this SysExcelApplication application; SysExcelWorkbooks workbooks; ; application = SysExcelApplication::construct(); workbooks = ap

[Axapta-Knowledge-Village] Open a file

2010-08-17 Thread thomas 'znal' ramdhan
Dear all, I'd like to know, how can I open a file automatically through Axapta ? Let's say, I have an excel file in my desktop, and I'd like to open it by code in Axapta. Thanks and Regards, Afin -- ne faites pas une limite pour votre competence -