• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

launch a .DOC file using Winword.

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi All,
Currently I am working on an application which requires me to launch a file using its default Application viewer. For eg a doc file with Winword, txt file
with notepad etc. How would I identify such an application and launch a file with that application from an applet.

Any examples would be great. Thanks

Regards
Shashikant
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where are those files located - on the client, or on the server?

If they're on the client, it will likely involve calling Runtime.exec(). The applet will need to be signed or the local security policy adjusted to allow it to do that.
 
shashikant nagavarapu
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
The files would be downloaded to the client system(signed applet) and then the file based on its extension has to be launched using the default application of the file type , installed in the client machine. I was wondering as this would be possible using the help of windows registry. (At present this needs to work only on windows platform).

Any suggestions and samples would be appreciated.

Thanks
Shashikant
 
If you're gonna buy things, buy this thing and I get a fat kickback:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic