Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting recognition of file type for Office 2007 documen
Message
 
To
15/06/2012 18:04:21
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01546122
Message ID:
01546135
Views:
34
Michel,

I would have done a data driven approach, having a table the extension as a primary/unique key, a column for a description, and a column for the definition, then in your procedure you just loop the table searching for a matching definition, that way you do not need to change the code every time you've got a new extension to work with (still you will need to have code for exceptions like you have for word) and the code would be much shorter and simpler.

Hugo
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform