Jump to content

Recommended Posts

Posted (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 by pmg
Falta LP no GeSHi

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.