esquima Posted November 30, 2007 at 04:09 PM Report Share #151383 Posted November 30, 2007 at 04:09 PM Tenho uma grid no meu form e queria exportar os dados que estao contidos nela para o excel.... alguem ja fez uma coisa parecida??? precisava de ajuda Link to comment Share on other sites More sharing options...
Betovsky Posted November 30, 2007 at 04:10 PM Report Share #151384 Posted November 30, 2007 at 04:10 PM Usa o ficheiro excel como se fosse uma base de dados... "Give a man a fish and he will eat for a day; Teach a man to fish and he will eat for a lifetime. The moral? READ THE MANUAL !" Sign on a computer system consultant's desk Link to comment Share on other sites More sharing options...
esquima Posted November 30, 2007 at 06:19 PM Author Report Share #151404 Posted November 30, 2007 at 06:19 PM assim nao vou la 😉 Link to comment Share on other sites More sharing options...
Betovsky Posted November 30, 2007 at 06:36 PM Report Share #151410 Posted November 30, 2007 at 06:36 PM Tu podes usar um ficheiro excel como se fosse uma base de dados, por exemplo Access. Sendo cada worksheet uma tabela. A única coisa que muda será a tua ligação (SqlConnection), o resto permanecerá igual. http://www.connectionstrings.com/?carrier=excel "Give a man a fish and he will eat for a day; Teach a man to fish and he will eat for a lifetime. The moral? READ THE MANUAL !" Sign on a computer system consultant's desk Link to comment Share on other sites More sharing options...
esquima Posted November 30, 2007 at 10:32 PM Author Report Share #151475 Posted November 30, 2007 at 10:32 PM ja vi o site...n me ajudou grande coisa :s Link to comment Share on other sites More sharing options...
Joca Posted December 1, 2007 at 11:44 PM Report Share #151663 Posted December 1, 2007 at 11:44 PM Talvez com isto chegues lá: http://www.macoratti.net/excel_vb.htm Link to comment Share on other sites More sharing options...
Betovsky Posted December 3, 2007 at 12:11 PM Report Share #151920 Posted December 3, 2007 at 12:11 PM esquima desculpa só responder agora, tive o fds todo fora. Vê esse link que o Joca deu, é mais potente do que da maneira que tinha dito. Não conhecia esse objecto. Se mesmo assim quizeres aceder como fosse uma base de dados, diz qualquer coisa e faço-te um código exemplo. "Give a man a fish and he will eat for a day; Teach a man to fish and he will eat for a lifetime. The moral? READ THE MANUAL !" Sign on a computer system consultant's desk Link to comment Share on other sites More sharing options...
esquima Posted December 3, 2007 at 06:04 PM Author Report Share #152001 Posted December 3, 2007 at 06:04 PM obrigado pessoal ja consegui, segui o link que o joca meteu....betovsky obrigado pela atenção Link to comment Share on other sites More sharing options...
freaklori Posted December 7, 2007 at 11:05 AM Report Share #152842 Posted December 7, 2007 at 11:05 AM eu trabalho muito com as ferramentas do office (powerpoint e excel) se precisares de algumas luzes apita! Mas nao utilizo o excel como base de dados... :S faço sim importaçao de informaçao que se encontra no excel para uma bd e depois a respectiva exportaçao para outro excel.application com a informaçao e os calculos todos janotas... para teres uma noçao de como chegar as propriedades do excel atraves do vb.. utiliza as macros dao algum jeito 🙂 cumps FAÇO TUDO COM DUAS LINHAS DE CÓDIGO; Link to comment Share on other sites More sharing options...
esquima Posted December 7, 2007 at 12:41 PM Author Report Share #152856 Posted December 7, 2007 at 12:41 PM obrigado pela disponibilidade freaklori...eu consegui exportar os dados..so que ao passar para o excel depois sou eu que tenho de formatar a mao as celulas 🙂 Link to comment Share on other sites More sharing options...
freaklori Posted December 11, 2007 at 11:47 AM Report Share #153618 Posted December 11, 2007 at 11:47 AM podes criar no vb procedimentos/funçoes que percorrer a tua folha excel e formatam como desejares... utiliza as macros do excel (VBA) é bastante util 😞 depois basta adaptares o codigo para a linguagem de vb... que nao é mt diferente 😞 Cumps FAÇO TUDO COM DUAS LINHAS DE CÓDIGO; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now