como saber de que tipo es un archivo?

G

goosfancito

hola.

Quiero saber como hacer para identificar de que tipo es un archivo,
como ser: quiero que el usuario seleccione un archivo excel y despues
poder verificar que asi es y que no es un archivo que se renombro con
extension excel.

Graicas.
 
T

Teemu

goosfancito said:
hola.

Quiero saber como hacer para identificar de que tipo es un archivo,
como ser: quiero que el usuario seleccione un archivo excel y despues
poder verificar que asi es y que no es un archivo que se renombro con
extension excel.

Creo que podemos ayudarte mejor si escribimos en inglés. Aquí la misma
pregunta en inglés:

The original poster wants to know how he can be sure that a file is really
made with Excel and not just renamed to have Excel's file extension.

******

Is the file created with Excel 2007 or with older versions? XML formats are
quite easy to recognize and here is some information about binary formats:
http://sc.openoffice.org/excelfileformat.pdf

Is it possible to try open the file with hidden Excel from Visual Basic or
must it be done without Excel?

-Teemu
 
C

Cor Ligthert[MVP]

Teemu,

Very nice answer, however will you next time add a row like by instance.

This is an international newsgroup were because of that beside 6 languages
there everywhere else the English version of Visual Studio is used, English
is the used language. Please be so kind to confirm on that.

For Spanish there is a very good VB for Net newsgroup where the conversation
language is Spanish.

Thanks in advance.

Cor
 
T

Teemu

Cor Ligthert said:
Teemu,

Very nice answer, however will you next time add a row like by instance.

This is an international newsgroup were because of that beside 6 languages
there everywhere else the English version of Visual Studio is used,
English is the used language. Please be so kind to confirm on that.

Actually I wrote to the original poster that we can help him better in
English. But I also translated the question because I'm sure that somebody
knows a good solution for this.

But as I wrote we need to know something more to be able to help...

-Teemu
 
C

Cor Ligthert[MVP]

Teemu,

Sorry,

Creo que podemos ayudarte mejor si escribimos en inglés. Aquí la misma
pregunta en inglés:

I should have seen this "ingles" and "scribo" is in all latin languages
almost the same.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top