Hi,
Thanks for your reply. I tried double clicking the button and this opens script editor with javascript(script.js). I wrote java script code to open file dialog but it throws error. Its not recogonizing javascript objects like 'document' . Which language do u mean by .net (jscript/vbscript/c#..?). I am very new to infopath and scripting ...