Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

I have a website where i need to display records from the database as per user request.

For it I used microsoft reportviewer. I run successfully on local server but when i run it on my website pages it displays PAGE NOT FOUND error?

How can I solve the problem. Is there any better way to display reports from datatables designed on server side script in vb?

The code I use is below:
Dim Tbl2 as datatable
Tbl2 = Con.DS.Tables(Tbl).Copy ' database records are copied in datatable

ReportViewer1.ProcessingMode = ProcessingMode.Local
ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/MyLevel1.rdlc")

Dim x = Tbl2.Rows.Count

' Dataset1_Level1 is the table in dataset1.xsd on my application
Dim datasource As New ReportDataSource("DataSet1_Level1", Tbl2)
ReportViewer1.LocalReport.DataSources.Clear()
ReportViewer1.LocalReport.DataSources.Add(datasource)
ReportViewer1.LocalReport.Refresh()

Not Found
The requested document was not found on this server.

Web Server at XXXXXXXX.com
Posted
Updated 24-Sep-13 0:01am
v2

1 solution

Hi ,
Your rdlc file should be present on server where you are hosting your application. In same folder in which your application is running.

--
Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900