May 25, 2005 at 8:00 am
Hello All,
I am trying to embed some reports in a Web Application. I created the report using VS.NET and deployed it to the report server.
To embed it on the web page I am using the reportviewer control and setting the 2 properties, ServerUrl and the ReportPath so that the report gets generated on my page. Is this the correct method or are there any other methods to do it?
Thanks
Imran
May 26, 2005 at 9:30 am
I think you are describing the URL method of integrating, which is what I use. You can also use the SOAP method, but I am not familiar with that.
May 26, 2005 at 10:17 am
Hi Imran,
I am also using the reportviewer control. For the ServerURL and ReportPath properties, I am getting these settings from my web.config file for ease of implementation from development to deployment.
May 26, 2005 at 10:34 am
I like the web.config, nice suggestion...
On your Page that has the viewer put something like this in the page_load event (param is optional):
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Dim strReportPath As String
strReportPath = ConfigurationSettings.AppSettings("rptPath").ToString & _
ReportName & "&rptParam1=" & Request.Form("txtParam1")
Me.ReportViewer1.ReportPath = strReportPath
Me.ReportViewer1.ServerURL = ConfigurationSettings.AppSettings("rptServerURL").ToString
End Sub
May 26, 2005 at 10:50 am
Thanks for the reply,
There is also a Webservice method which can be used to generate reports through code. Did anybody ever use that??
Thanks
Imran
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply