473,402 Members | 2,072 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Possible values of DTE.ActiveDocument.Kind ?


DTE.ActiveDocument.Kind returns a guid as a string. I couldn't find
any list of what pre-defined GUIDs would be returned and what document
types they correspond to.

Is there a list available?

Thanks,

Sam

B-Line is now hiring one Washington D.C. area VB.NET
developer for WinForms + WebServices position.
Seaking mid to senior level developer. For
information or to apply e-mail resume to
sam_blinex_com.
Nov 21 '05 #1
3 3575
Hi

Based on my research, We did not have such an offical list.
While here is my test result, we can get the GUID by a simple test.

TextFile1.txt{8E7B96A8-E33D-11D0-A6D5-00C04FB67F6A}
App.config{C76D83F8-A489-11D0-8195-00A0C91BBEE3}
Bitmap1.bmp
VBScript1.vbs{C76D83F8-A489-11D0-8195-00A0C91BBEE3}
AssemblyInfo.vb{8E7B96A8-E33D-11D0-A6D5-00C04FB67F6A}
Form1.vb{8E7B96A8-E33D-11D0-A6D5-00C04FB67F6A}
WebPart1.dwp{8E7B96A8-E33D-11D0-A6D5-00C04FB67F6A}
Form1.resx{C76D83F8-A489-11D0-8195-00A0C91BBEE3}
XSLTFile1.xslt{C76D83F8-A489-11D0-8195-00A0C91BBEE3}
HTMLPage1.htm{C76D83F8-A489-11D0-8195-00A0C91BBEE3}
DataSet1.xsd{C76D83F8-A489-11D0-8195-00A0C91BBEE3}
CrystalReport1.rpt{A5931DB3-E84B-4B03-BAAF-0183324FFB68}

We will find that some solution items will have same GUID and some have no
guid(e.g. *.bmp)
What will you want to do? Maybe we have another solution for you.
From the test result, it seems that it is hard to tell some from others.
e.g.*.vbs, *.config,*.htm,*.resx and etc have the same GUID.

If you still have any concern, please feel free to post here.
Thanks!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #2

Thanks for the info.

What I was aiming at was adding an exit condition to my VS.NET macro
so it won't run if someone accidentally runs it on the incorrect file
type then I just won't run the macro.

Looks like it would be best to just work off file extension intead of
document kind.

Best regards,

Sam
btw, macro is here if anyone interested--inserts try/catch or
try/finally in vb.net:

http://www.rewindlife.com/archives/000222.cfm
On Sat, 09 Apr 2005 02:57:15 GMT, v-******@online.microsoft.com
("Peter Huang" [MSFT]) wrote:
Hi

Based on my research, We did not have such an offical list.
While here is my test result, we can get the GUID by a simple test.

TextFile1.txt{8E7B96A8-E33D-11D0-A6D5-00C04FB67F6A}
App.config{C76D83F8-A489-11D0-8195-00A0C91BBEE3}
Bitmap1.bmp
VBScript1.vbs{C76D83F8-A489-11D0-8195-00A0C91BBEE3}
AssemblyInfo.vb{8E7B96A8-E33D-11D0-A6D5-00C04FB67F6A}
Form1.vb{8E7B96A8-E33D-11D0-A6D5-00C04FB67F6A}
WebPart1.dwp{8E7B96A8-E33D-11D0-A6D5-00C04FB67F6A}
Form1.resx{C76D83F8-A489-11D0-8195-00A0C91BBEE3}
XSLTFile1.xslt{C76D83F8-A489-11D0-8195-00A0C91BBEE3}
HTMLPage1.htm{C76D83F8-A489-11D0-8195-00A0C91BBEE3}
DataSet1.xsd{C76D83F8-A489-11D0-8195-00A0C91BBEE3}
CrystalReport1.rpt{A5931DB3-E84B-4B03-BAAF-0183324FFB68}

We will find that some solution items will have same GUID and some have no
guid(e.g. *.bmp)
What will you want to do? Maybe we have another solution for you.
From the test result, it seems that it is hard to tell some from others.
e.g.*.vbs, *.config,*.htm,*.resx and etc have the same GUID.

If you still have any concern, please feel free to post here.
Thanks!

Best regards,

Peter Huang
Microsoft Online Partner Support

B-Line is now hiring one Washington D.C. area VB.NET
developer for WinForms + WebServices position.
Seaking mid to senior level developer. For
information or to apply e-mail resume to
sam_blinex_com.
Nov 21 '05 #3
Hi

Thanks for your quickly reply!
If you still have any concern, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ingrid | last post by:
Am I right in thinking that datatyping at element level ie <xs:element name="num" type="xs:integer"> and specifying a choice of attribute values ie <xs:attribute name="kind"> <xs:simpleType>...
3
by: MSNEWS | last post by:
Hi I have a VB.NET app which reads thru a list of directories containing word files, converts the file to text and then loads into a SQL SERVER table. To avoid any word issues (macro virus,...
8
by: Thorsten Ottosen | last post by:
Dear all, I'm new to C#, so forgive my stupid question. In my question to avoid boilerplate code, I was wondering if I could use attributes to generate some code for me. For example ...
3
by: Ken Wilson | last post by:
I am currently working on a Visual Studio add-in. Does anyone know of a simple way to get the line number the cursor is on in the ActiveDocument? I don't necessarily need full code as long as...
1
by: Killian | last post by:
All, I'm using a word application in ASP.net (server side) to open an existing document, do a mail merge on it and then serve the created document to the client. The problem I am having is...
0
by: Killian | last post by:
All, I'm using a word application in ASP.net (server side) to open an existing document, do a mail merge on it and then serve the created document to the client. The problem I am having is...
1
by: Josh Asbury | last post by:
Hi all - I am having troubles with implementing a CommandBar in Microsoft Word utilizing VB.net. My CommandBar appears when I start Word, but if I open an existing document, it does not appear....
3
by: Erwin Qazi | last post by:
Hi, First off: I'm totally a noob! I want to program this in word 2002: if the document is a .dot file then DocCode (a field name) is DocCode if the document is a .doc file then DocCode =...
5
by: Dave Smithz | last post by:
Hi there, Been working on an evolving DB program for a while now. Suddenly I have come across a situation where I need to update a table based on a group by query. For example, I have a table...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.