Best regards.
rbr
You need to get an instance of the DTE2 object for the running
instance of vs. The solution I found was this...
//get DTE2 object for running instance
DTE2 app =
(DTE2)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.
10.0");
// open the SQL file in the editor window
Application.ItemOperations.OpenFile("e:\sql\sqlfile1.sql",
Constants.vsViewKindAny);
Best,
rbr