To view a text file by clicking a Button

Dear All,

In Ax 2009, I have created a text file for reporting purposes which directly goes to printer. Now, I want to preview the same file before it goes to print. Here, what codes can I do to preview the text file. The text file as like in the folder “C:\AXRep\Purch.txt”.

Please provide a solution to this.

Thanks,

G.Rajkumar

+(91)-(94)-876-75157

WinAPI::shellExecute(filename);

Its working,

Thanks Mr.Kranthi,

Regards,

G.Rajkumar