Jump to content
Fórum Script Brasil
  • 0

(Resolvido) Gerar relatório no Report Viewer


Olá pessoal.

Estou tentando gerar um relatório no Report Viewer mas esta retornando a seguinte mensagem de erro:

"An error has occurred during report processing.


Segue código:

'1 passo: carregar o relatório
      strReportPath = Server.MapPath("~\Modelos\Sbna6801_Modelo.rdlc") 'String.Concat(Replace(My.Application.Info.DirectoryPath(), "\bin\Debug", ""), "\rdlProdutos.rdlc")
      ReportViewer1.LocalReport.ReportPath = strReportPath

      'definindo o DataSource do relatório
      Dim myReportDataSource As ReportDataSource = New ReportDataSource("DatasetA68", DTConsulta)
      Exit Try

      Dim reportPath As String = Server.MapPath("~\FSMax.eFood.20\Modelos\Sbna6801_Modelo.rdlc")
      Dim rView As ReportViewer = New ReportViewer()

      'informando os dados para o reportview
      rView.LocalReport.DataSources.Add(New ReportDataSource("DatasetA68", DTConsulta))
      rView.LocalReport.ReportPath = reportPath

Alguém pode me ajudar?

Agradeço desde já!

Edited by quintelab
Removido Ajuda do título
Link to post
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Cloud Computing

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...