bioshock Posted May 27, 2009 at 01:15 PM Report #267675 Posted May 27, 2009 at 01:15 PM Boas pessoal, gostava de por estes códigos, mas a ir buscar à pasta Debug\Teste\... do Programa. MyConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\teste\Teste.mdb") e e.Graphics.DrawImage(Image.FromFile("C:\teste\" & "Imagem1.gif"), 100, 68) Alguém me pode explicar sff? Cumprimentos.
bioshock Posted May 27, 2009 at 01:21 PM Author Report #267681 Posted May 27, 2009 at 01:21 PM Já sei, se alguém quiser a resolução que poste aqui. Abraço.
ribeiro55 Posted May 27, 2009 at 01:23 PM Report #267682 Posted May 27, 2009 at 01:23 PM My.Application.Info.DirectoryPath & "\teste\Teste.mdb" Vai onde quer que o executável esteja. Sérgio Ribeiro "Great coders aren't born. They're compiled and released""Expert coders do not need a keyboard. They just throw magnets at the RAM chips"
bioshock Posted May 27, 2009 at 01:49 PM Author Report #267693 Posted May 27, 2009 at 01:49 PM My.Application.Info.DirectoryPath & "\teste\Teste.mdb" Vai onde quer que o executável esteja. Se fizer como tu disseste, ou seja: MyConnection = New OleDbConnection(My.Application.Info.DirectoryPath & "\teste\Teste.mdb") Dá-me erro.
ribeiro55 Posted May 27, 2009 at 01:51 PM Report #267694 Posted May 27, 2009 at 01:51 PM Lol, e o resto da connectionstring ? Sérgio Ribeiro "Great coders aren't born. They're compiled and released""Expert coders do not need a keyboard. They just throw magnets at the RAM chips"
bioshock Posted May 27, 2009 at 01:52 PM Author Report #267695 Posted May 27, 2009 at 01:52 PM Não percebi, queres que poste aqui o resto da connectionstring?
ribeiro55 Posted May 27, 2009 at 01:55 PM Report #267698 Posted May 27, 2009 at 01:55 PM Não rapaz. MyConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & My.Application.Info.DirectoryPath & "\teste\Teste.mdb") Faltava-te o resto da connectionstring. Não é só o caminho para a DB. Sérgio Ribeiro "Great coders aren't born. They're compiled and released""Expert coders do not need a keyboard. They just throw magnets at the RAM chips"
bioshock Posted May 27, 2009 at 02:05 PM Author Report #267704 Posted May 27, 2009 at 02:05 PM Boas, resultou, mas tenho um pequeno problema. Agora na página de impressão aparece-me o seguinte texto a azul: Provider=Microsoft.Jet.OLEDB.4.0;Data source
bioshock Posted May 27, 2009 at 02:06 PM Author Report #267706 Posted May 27, 2009 at 02:06 PM Já sei o que é. Obrigado pela ajuda Ribeiro.
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