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.

Re: como saber de que tipo es un archivo? by Teemu

Teemu
Sat May 10 14:12:36 CDT 2008


"goosfancito" <goosfancito@gmail.com> kirjoitti viestissä
news:4bc2e781-de15-40d9-846e-8ceb9c5d1dff@e53g2000hsa.googlegroups.com...
> 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


Re: como saber de que tipo es un archivo? by Cor

Cor
Sun May 11 01:48:38 CDT 2008

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

"Teemu" <tsirkia@hotmail.com> schreef in bericht
news:GsmVj.1499$uB3.613@reader1.news.saunalahti.fi...
>
> "goosfancito" <goosfancito@gmail.com> kirjoitti viestissä
> news:4bc2e781-de15-40d9-846e-8ceb9c5d1dff@e53g2000hsa.googlegroups.com...
>> 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


Re: como saber de que tipo es un archivo? by Teemu

Teemu
Sun May 11 03:18:46 CDT 2008


"Cor Ligthert[MVP]" <notmyfirstname@planet.nl> kirjoitti viestissä
news:3EF27FBE-8BBE-4E5F-AABE-A5D2CDEF24B1@microsoft.com...
> 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


Re: como saber de que tipo es un archivo? by Cor

Cor
Sun May 11 08:00:19 CDT 2008

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

"Teemu" <tsirkia@hotmail.com> schreef in bericht
news:GsmVj.1499$uB3.613@reader1.news.saunalahti.fi...
>
> "goosfancito" <goosfancito@gmail.com> kirjoitti viestissä
> news:4bc2e781-de15-40d9-846e-8ceb9c5d1dff@e53g2000hsa.googlegroups.com...
>> 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