Also if you are using remote mode for server try following
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote
ReportViewer1.ServerReport.ReportServerUrl = New Uri("http://localhost/reportServer$Yukon")
ReportViewer1.ServerReport.ReportPath = "/KodyazReports/Products"
Dim params(0) As Microsoft.Reporting.WebForms.ReportParameter
Dim p As Microsoft.Reporting.WebForms.ReportParameter
p = New Microsoft.Reporting.WebForms.ReportParameter("ProductId", txtProductId.Text)
params(0) = p
ReportViewer1.ServerReport.SetParameters(params)
ReportViewer1.ServerReport.Refresh()
End Sub
thanks for all the links,and this one catch my eyes:
In Report Server Url, enter the Url for the report server. For example, type http://myservername/reportserver.
In Report Path, enter the path of the report on the server.
If the report server runs in native mode, the path name begins with the root / and includes the folders and report name. For example, type /AdventureWorks 2008 Sample Reports/Company Sales 2008.
If the report server runs in SharePoint integrated mode, the path name is a fully qualified URL. For example, typehttp://myserver/sites/mysite/mylibrary/AdventureWorks 2008 Sample Reports/Company Sales 2008.rdl.
it's still no working after i replace it with my domain name, i use "http://exampledomain.com/reportserver" as report server url and "http://www.exampledomain.com/Report.rdlc" as report path.
already upload the Report.rdlc.
Note: i dun have "reportserver" 's folder ay mt server, is this correct?
server report should be a RDL file.... change the extension to Report1.RDL and upload it on report server....
or if you dont want to save it as server report, and want to use this rdlc at local then use the code below:
reportViewer1.Visible = true;
reportViewer1.LocalReport.ReportPath = "Report1.rdlc";
reportViewer1.LocalReport.SetParameters(new ReportParameter("Name", txtStudentName.Text)); ' incase your report have parameters
reportViewer1.LocalReport.SetParameters(new ReportParameter("course", txtCourse.Text)); ' incase your report have parameters
reportViewer1.RefreshReport();
Ashutosh Pathak
Blog: http://catchcode.blogspot.com Please mark it as answer if it helps, as clicking on the button can save time of others :)
MCP,MCAD,MCSD,MCTS
melvintcs
Member
182 Points
238 Posts
reportviewer .rdlc
Mar 15, 2012 12:58 PM|LINK
i create a report using MicrosoftReportViewer, it's working at localhost, but display page not found after i upload to server.
i cant even see the next/prev/first/last page button
already upload all the files, included the bin file. this is front end coding, what else i missed?
<div style="text-align: center"> <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" Height="369px" style="text-align: center" Width="911px"> <LocalReport ReportPath="Report1.rdlc"> <DataSources> <rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="databaseDataSet_member" /> </DataSources> </LocalReport> </rsweb:ReportViewer> <br /> <br /> <br /> <br /> <br /> <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetData" TypeName="databaseDataSetTableAdapters.memberTableAdapter"> </asp:ObjectDataSource> </div>avinash_bhud...
Contributor
2881 Points
517 Posts
Re: reportviewer .rdlc
Mar 15, 2012 01:30 PM|LINK
Try giving ReportPath as full path from web applications root directory.
like ReportPath="RDLC\Report.rdlc"
assuming RDLC folder is inside your web application root Directory.
melvintcs
Member
182 Points
238 Posts
Re: reportviewer .rdlc
Mar 15, 2012 01:32 PM|LINK
report is not inside any folder, it's at root dir
avinash_bhud...
Contributor
2881 Points
517 Posts
Re: reportviewer .rdlc
Mar 15, 2012 01:55 PM|LINK
You could try following things.
1.In the ReportViewer Tasks smart tags panel (.aspx view design mode), find Choose Report, and select Server Report.
2.Manually Replace rdlc file on server with your dev copy.
melvintcs
Member
182 Points
238 Posts
Re: reportviewer .rdlc
Mar 16, 2012 03:13 AM|LINK
what should i write at the "Report Server url" & "Report path"
by default Report server url is "http://localhost/reportserver" and report path is blank.
i tried to key in the full url path in the "Report path" like http://www.exampledomain.com/Report.rdlc , but not working =(
avinash_bhud...
Contributor
2881 Points
517 Posts
Re: reportviewer .rdlc
Mar 16, 2012 06:00 AM|LINK
Refer this link it has similar issue addressed.
http://forums.asp.net/t/1172431.aspx/1
More information on Deploying reports
http://msdn.microsoft.com/en-us/library/ms252075.aspx
http://msdn.microsoft.com/en-us/library/ms251723.aspx
http://msdn.microsoft.com/en-us/library/ms251704.aspx
http://msdn.microsoft.com/en-us/library/ms252109.aspx
read these links you may get your solution.
for configuring URL of report on server refer this link
http://msdn.microsoft.com/en-us/library/ms251669.aspx
Also if you are using remote mode for server try following
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote ReportViewer1.ServerReport.ReportServerUrl = New Uri("http://localhost/reportServer$Yukon") ReportViewer1.ServerReport.ReportPath = "/KodyazReports/Products" Dim params(0) As Microsoft.Reporting.WebForms.ReportParameter Dim p As Microsoft.Reporting.WebForms.ReportParameter p = New Microsoft.Reporting.WebForms.ReportParameter("ProductId", txtProductId.Text) params(0) = p ReportViewer1.ServerReport.SetParameters(params) ReportViewer1.ServerReport.Refresh() End Submelvintcs
Member
182 Points
238 Posts
Re: reportviewer .rdlc
Mar 16, 2012 01:34 PM|LINK
thanks for all the links,and this one catch my eyes:
In Report Server Url, enter the Url for the report server. For example, type http://myservername/reportserver.
In Report Path, enter the path of the report on the server.
If the report server runs in native mode, the path name begins with the root / and includes the folders and report name. For example, type /AdventureWorks 2008 Sample Reports/Company Sales 2008.
If the report server runs in SharePoint integrated mode, the path name is a fully qualified URL. For example, typehttp://myserver/sites/mysite/mylibrary/AdventureWorks 2008 Sample Reports/Company Sales 2008.rdl.
it's still no working after i replace it with my domain name, i use "http://exampledomain.com/reportserver" as report server url and "http://www.exampledomain.com/Report.rdlc" as report path.
already upload the Report.rdlc.
Note: i dun have "reportserver" 's folder ay mt server, is this correct?
melvintcs
Member
182 Points
238 Posts
Re: reportviewer .rdlc
Mar 23, 2012 12:07 PM|LINK
this is my code, can anyone please adivce me?
Error:
Ashutosh Pat...
Contributor
5737 Points
1105 Posts
Re: reportviewer .rdlc
Mar 23, 2012 04:16 PM|LINK
server report should be a RDL file.... change the extension to Report1.RDL and upload it on report server....
or if you dont want to save it as server report, and want to use this rdlc at local then use the code below:
reportViewer1.Visible = true;
reportViewer1.LocalReport.ReportPath = "Report1.rdlc";
reportViewer1.LocalReport.SetParameters(new ReportParameter("Name", txtStudentName.Text)); ' incase your report have parameters
reportViewer1.LocalReport.SetParameters(new ReportParameter("course", txtCourse.Text)); ' incase your report have parameters
reportViewer1.RefreshReport();
Blog: http://catchcode.blogspot.com
Please mark it as answer if it helps, as clicking on the button can save time of others :)
MCP,MCAD,MCSD,MCTS