Well said C. That said, Ranjith, once you're done taking basic steps to educate yourself here on these things (you're already using the Office interops http://en.wikipedia.org/wiki/Visual_Studio_Tools_for_Office), I would consider removing your hardcoded "d:\\Myword.doc" and moving the document code out of the button event and into a class or a class library. The design you have now make maintenance and extension of your code in the future difficult. Makes reuse difficult. Makes it harder to educate other people in proper use of said code. The best code is self documenting and implicitly teaches/guides people as to how it should be used.
∞ Andy Badera ∞ +1 518-641-1280 ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me: http://www.google.com/search?q=andrew%20badera On Tue, Sep 22, 2009 at 1:39 PM, Cerebrus <[email protected]> wrote: > > I guess you didn't understand what "RTFM" and "GIYF" meant or you > wouldn't ask what "VSTO" is !! Time to LMGTFY, I would say !! > > On Sep 22, 10:04 pm, Ranjith <[email protected]> wrote: >> And i like to say one more thing . >> I am a very beginner in .NET. >> And i didn't get what is VSTO. > > On Sep 20, 5:49 pm, Andrew Badera <[email protected]> wrote: >> >> Next time: RTFM, and GIYF > >
