Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / December 2005

Tip: Looking for answers? Try searching our database.

DTE.Documents.Open method not documented

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nabeel Moeen - 21 Dec 2005 13:36 GMT
HI,

I was unable to find documentation for the "DTE.Documents.Open" method in
msdn!
Is this the method to invoke if i want to open a new file in the environment??
(the file is not necessarily a solution item, i want to open an xml file in
the environment from a command on the addin).

Regards,
nabeel moeen
Ed Dore [MSFT] - 22 Dec 2005 04:11 GMT
Hi Nabeel,

I don't recommend using that Open method. The documentation indicates it's
for MS internal use only. It would probably be better for you to use the
DTE.ItemOperations.OpenFile method.

Sincerely,
Ed Dore [MSFT]

This post is 'AS IS' with no warranties, and confers no rights.
Nabeel Moeen - 22 Dec 2005 13:37 GMT
> Hi Nabeel,
>
[quoted text clipped - 6 lines]
>
> This post is 'AS IS' with no warranties, and confers no rights.
Nabeel Moeen - 22 Dec 2005 13:39 GMT
Calling the following code throws a "parameter is incorrect" exception

applicationObject.ItemOperations.OpenFile(fileName,
Constants.vsViewKindTextView);

> Hi Nabeel,
>
[quoted text clipped - 6 lines]
>
> This post is 'AS IS' with no warranties, and confers no rights.
Nabeel Moeen - 23 Dec 2005 13:18 GMT
sorry...there was a problem with the FileName parameter.

> Calling the following code throws a "parameter is incorrect" exception
>
[quoted text clipped - 11 lines]
> >
> > This post is 'AS IS' with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.