Hello les gens !

Première fois que je tente d'insérer un subreport dans un report de reporting service et évidemment, je me heurte à quelques soucis

J'ai bien trouvé ceci ou encore ceci mais je n'arrive pas à solutionner mon problème.

Mon problème étant le message suivant :
data retrieval failed for the subreport 'XXX' located at:XXXXX. Please check the log files for more information.
Et voici le code du formulaire qui affiche le rapport :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Imports Microsoft.Reporting.WinForms
Imports System.IO
 
Public Class frmPrint
 
    Private Sub frmPrint_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        Me.taVoucher.Fill(dsVoucher.dtblVoucher, frmStart.strStore, frmStart.dtDateStart, frmStart.dtDateEnd, frmStart.intTill)
        Me.TaVoucherDetail.Fill(dsVoucher.dtblVoucherDetail, frmStart.strStore, frmStart.dtDateStart, frmStart.dtDateEnd, frmStart.intTill, frmStart.dgvVoucher.CurrentRow.Cells(0).Value.ToString)
 
        rvVoucher.RefreshReport()
        'Dim test As New SubreportProcessingEventHandler(AddressOf LocalReport_SubreportProcessing)
        Dim subreport As IO.Stream = New FileStream("rptVoucherDetail.rdlc", FileMode.Open, FileAccess.Read)
        rvVoucher.LocalReport.LoadSubreportDefinition("rptVoucherDetail", subreport)
        'Me.rvVoucher.RefreshReport()
    End Sub
 
    Public Sub LocalReport_SubreportProcessing(ByVal sender As Object, ByVal e As SubreportProcessingEventArgs) Handles rvVoucher.localreport.subreportprocessing
        Dim src As New ReportDataSource(dsVoucher.dtblVoucherDetail.TableName, bdsVoucherDetail)
        e.DataSources.Add(src)
    End Sub
End Class
J'ai essayé un peu plein de chose mais je dois bien avouer que je joue un peu à l'apprenti sorcier. En ce qui me concerne, ce n'est pas clair et je bidouille plus que je ne code...

Quelqu'un pourrait-il éclairer ma lanterne ?

Griftou.

EDIT :

J'ai oublié de préciser que je n'ai aucune idée d'où se trouve les fichiers log mentionnés dans le message d'erreur et je travaille sous VS2010.