Ricardo80 Posted April 4, 2013 at 09:04 PM Report #501715 Posted April 4, 2013 at 09:04 PM (edited) Boa tarde pessoal, como eu faço pra gerar um relatorio .RDLC que pelo que eu entendi é nativo do VB.NET 2010, eu tenho uma function que retorna pra um npgsqldatareader o conteudo do comando sql, segue o código abaixo Public Function ConsultaSQL(ByVal rComandoSQL As String) As NpgsqlDataReader Try 'VERIFICA SE rComandoSQL TEM ALGUM CONTEUDO If rComandoSQL = "" Then MsgBox("FUNÇÃO: ConsultaSQL" & vbNewLine & _ "Informar um comando SQL") End If 'MsgBox(rComandoSQL) AbreBanco() DA = New NpgsqlDataAdapter(rComandoSQL, conn) cmdSQL = New NpgsqlCommand(rComandoSQL, conn) DR = cmdSQL.ExecuteReader() Return DR Catch ex As Exception MsgBox("Erro na função:ConsultaSQL" & vbNewLine & _ "Mensagem: " & ex.Message) End Try End Function Esta minha function retorna o select para um npgsqldatareader, e dai pra frente eu não sei como fazer, Alguém pode me dar o caminha das pedras pra isso??? Abraços a todos. Edited April 4, 2013 at 09:10 PM by pmg Falta LP no GeSHi
samesdavis Posted April 8, 2013 at 03:05 AM Report #502076 Posted April 8, 2013 at 03:05 AM Aqui tem boas dicas de como utilizar o Report Viewer http://www.jorgepaulino.com/search?q=reportviewer
Ricardo80 Posted April 8, 2013 at 01:26 PM Author Report #502128 Posted April 8, 2013 at 01:26 PM Obrigado amigo, vou dar uma olhada....
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