Galera tenho um formulario, onde de acordo com a opção do usuario ele poderá selecionar um arquivo rdlc diferente para gerar no report view, o problema é que ele não esta atualizando o caminho do report viewer.
O codigo na visão esta assim:
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana"
Font-Size="8pt" Height="283px" Width="610px" BackColor="White"
ShowPageNavigationControls="False" style="text-align: center"
DocumentMapCollapsed="True">
<LocalReport ReportPath="gastosPorPeriodoTexto.rdlc" enableexternalimages="True">
<datasources>
<rsweb:ReportDataSource DataSourceId="SqlDataSource1"
Name="DataSet_View_Gastos" />
</datasources>
</LocalReport>
</rsweb:ReportViewer>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:Db_Control %>"
SelectCommand="SELECT dtLancamento, iValorConta, sDescricao, sFornecedor FROM View_Gastos">
</asp:SqlDataSource>
e no vb:
SqlDataSource1.SelectCommand = _query
ReportViewer1.LocalReport.Refresh()
If ddlTipo.SelectedValue = "0" Then
ReportViewer1.LocalReport.ReportPath = "gastosPorPeriodoTexto.rdlc"
ElseIf ddlTipo.SelectedValue = "1" Then
If ddlGrafico.SelectedValue = "0" Then
ReportViewer1.LocalReport.ReportPath = "gastosPorPeriodoBarra.rdlc"
Else
ReportViewer1.LocalReport.ReportPath = "gastosPorPeriodoPizza.rdlc"
End If
End If
ReportViewer1.LocalReport.Refresh()
divRelatorio.Visible = True
Alguem sabe o que posso fazer pra atualizar esse rdlc?
Ja tentei de tudo aqui mas nao funcionou, vlw!