Showing posts with label application. Show all posts
Showing posts with label application. Show all posts

Friday, March 30, 2012

ReportBuilder authentication

I am using the Report Builder in my application. When it is opened from an environment where there is no proxy, it is asking for authentication and it is working properly.

But when it is opened from the client environment where there is proxy, it is not asking for authentication and he cannot select or view any source of data.

How can I force the Report Builder in the client environment to prompt for authentication? If this cannot work, is there any other possible solution? (Not that it is not allowed to open the port)

Thank you in advance.

Hi,

As you mentioned, the only difference is set the proxy or not, right? Based on my knowledge, I don't think it would affect the behavior of Forms Authentication.

Could you help to check on the following points:

? If you use Forms Authentication, anonymous access must be enabled on the report server virtual directory in Internet Information Services (IIS).
? ASP.NET authentication must be set to Forms. You configure ASP.NET authentication in the Web.config file for the report server.
? Reporting Services can authenticate and authorize users with either Windows Authentication or custom authentication, but not both. Reporting Services does not support simultaneous use of multiple security extensions.

Thanks.

|||

Will that affect the reports?

|||

Hi,

? If you use Forms Authentication, anonymous access must be enabled on the report server virtual directory in Internet Information Services (IIS).
? ASP.NET authentication must be set to Forms. You configure ASP.NET authentication in the Web.config file for the report server.
? Reporting Services can authenticate and authorize users with either Windows Authentication or custom authentication, but not both. Reporting Services does not support simultaneous use of multiple security extensions.

These actions take effect on the reporting servcie site level. It's for the security on reporting servcie site. So it won't affect the detail reports.

Thanks.

sql

Report, Data sources errors.

Hi,

I have created several reports with Reporting Services and Visual Studio 2005 for an ASP.NET 2 application.

Now, when I want to edit a report and I select Report -> Data Sources in the Visual Studio menu, I get the error "prefix " cannot be mapped to namespace name "xml" or "xmlns". Line 1 position 87." My website datasources are empty and I can't build new reports.

Any idea ?

Thanks for your help.

Nicolas.

I am having this same problem. Does anyone have a solution.

I was able to make 2 Reports, and as I was working on my third report today the same error occured.

When i open the pervious reports i made (which still work), and goto Report > Data Sources I also get the error message:

Prefix '' cannot be mapped to namespace name reserved for "xml" or "xmls". Line 1, position 87

Any help is appreciated - thanks.


sql

Report with parameter and Windows Application

Hi,
I've created a report with parameter, namely user should enter three
parameter and then run the user.
From a window application I would like to launch (call) an existing report,
already depoloyed in the SQL Reporting Server, and pass the three parameter
according to the user's input. Can anybody help me'
ThanksToday you have two choices, URL integration or web services. With URL
integration you embed the IE browser control, assemble the appropriate URL.
With web services your app uses SOAP to get the rendered report (which still
needs to be shown, either html (browser control again) or pdf). Next version
will have a winform control that will make this much easier (late summer
hopefully).
--
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Siu" <Siu@.discussions.microsoft.com> wrote in message
news:BF7CD367-3353-4AA9-9C56-A5A6E2411638@.microsoft.com...
> Hi,
> I've created a report with parameter, namely user should enter three
> parameter and then run the user.
> From a window application I would like to launch (call) an existing
report,
> already depoloyed in the SQL Reporting Server, and pass the three
parameter
> according to the user's input. Can anybody help me'
> Thanks|||I'm interested in URL integration: how should I write the url in order to
pass the parameter?
Thanks :)
"Bruce L-C [MVP]" wrote:
> Today you have two choices, URL integration or web services. With URL
> integration you embed the IE browser control, assemble the appropriate URL.
> With web services your app uses SOAP to get the rendered report (which still
> needs to be shown, either html (browser control again) or pdf). Next version
> will have a winform control that will make this much easier (late summer
> hopefully).
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "Siu" <Siu@.discussions.microsoft.com> wrote in message
> news:BF7CD367-3353-4AA9-9C56-A5A6E2411638@.microsoft.com...
> > Hi,
> > I've created a report with parameter, namely user should enter three
> > parameter and then run the user.
> >
> > From a window application I would like to launch (call) an existing
> report,
> > already depoloyed in the SQL Reporting Server, and pass the three
> parameter
> > according to the user's input. Can anybody help me'
> >
> > Thanks
>
>

Wednesday, March 28, 2012

Report window opens, remains blank

I am trying to open reports through an existing application. When I click the button to run the report, the new window opens, appears to be trying to load (the windows logo in the top corner is flowing, the hourglass is present), and then stops. I am left with a blank window, no report, and no error message.

I am able to view and run the reports through the Report Server. Other users are able to run the reports through the application.

Any ideas?

Thanks,

Michelle

I found a solution. I had Adobe Reader 6.0 installed (still not sure why it wasn't working with that). I uninstalled this and installed the latest version of Adobe Reader (8.1), and it worked.

Report window opens, remains blank

I am trying to open reports through an existing application. When I click the button to run the report, the new window opens, appears to be trying to load (the windows logo in the top corner is flowing, the hourglass is present), and then stops. I am left with a blank window, no report, and no error message.

I am able to view and run the reports through the Report Server. Other users are able to run the reports through the application.

Any ideas?

Thanks,

Michelle

I found a solution. I had Adobe Reader 6.0 installed (still not sure why it wasn't working with that). I uninstalled this and installed the latest version of Adobe Reader (8.1), and it worked.sql

report viewer web.config settings for remote mode without session state

Hi
I am using the new report viewer control that comes with VS2005. My
application does not use session state as it is clustered and so I have been
following the Microsoft article for implementing the IReportViewerConnection
and then adding a key for the ReportServerConnection in the web.config file.
http://msdn2.microsoft.com/en-us/library/ms251661.aspx
My implementation of the interface is called ReportServerConnection and is
within a namespace called eNate.ESP.ESPWeb.
In my web.cofig file I have the following key
<add key="ReportViewerServerConnection"
value="eNate.ESP.ESPWeb.ReportServerConnection, ReportServerConnection" />
When I try to load the asp.net page which contains the report viewer control
I get the following error message
Microsoft.Reporting.WebForms.InvalidConfigFileTypeException: The type
eNate.ESP.ESPWeb.ReportServerConnection,
eNate.ESP.ESPWeb.ReportServerConnection does not implement
IReportServerConnection or could not be found.
I am definately implementing the interface but which ever way I try to
reference the class in the web.config key I always get this error.
The documentation about how to add this key file is not very clear and I
have not seen any other posts about this subject.
Could somebody please let me know how to reference this class correctly as I
think that is causing the error.
Thanks
Lewis Holmes
eNateHi Lewis,
Welcome to the MSDN newsgroup.
As for the custom IReportServerConnection class, we need to specify the
AssemblyQualified name which include the Class's full name, assembly name,
version, culture and publickeytoken info. For example:
<add key="ReportViewerServerConnection"
value="ControLibrary.SimpleReportServerConnection, ControLibrary,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
You can printout the class's assemblyQualified name through the below code:
Response.Write("<br/>" +
typeof(ControLibrary.SimpleReportServerConnection).AssemblyQualifiedName);
In addition, I agree that the document about the ReportViewer web.config
interfaces is not quite complete and sufficient. I suggest you also submit
this to the msdn product feedback center:
http://lab.msdn.microsoft.com/productfeedback/default.aspx
If there is anything else we can help, please feel free to post here.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)|||Thanks so much Steven!
I have got it to work now.
Regards
Lewis Holmes
eNate
"Steven Cheng[MSFT]" <stcheng@.online.microsoft.com> wrote in message
news:ZYha8E$RGHA.6904@.TK2MSFTNGXA03.phx.gbl...
> Hi Lewis,
> Welcome to the MSDN newsgroup.
> As for the custom IReportServerConnection class, we need to specify the
> AssemblyQualified name which include the Class's full name, assembly name,
> version, culture and publickeytoken info. For example:
> <add key="ReportViewerServerConnection"
> value="ControLibrary.SimpleReportServerConnection, ControLibrary,
> Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
> You can printout the class's assemblyQualified name through the below
> code:
> Response.Write("<br/>" +
> typeof(ControLibrary.SimpleReportServerConnection).AssemblyQualifiedName);
> In addition, I agree that the document about the ReportViewer web.config
> interfaces is not quite complete and sufficient. I suggest you also submit
> this to the msdn product feedback center:
> http://lab.msdn.microsoft.com/productfeedback/default.aspx
> If there is anything else we can help, please feel free to post here.
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>
>sql

Monday, March 26, 2012

Report Viewer to Get Data from RS Deployed on separate Network.

Hi,

I am using Reporting Services in the following way. The application implements a three tier Architecture viz Web Server, Application Server and Database Server. Reporting Services 2005 is installed on the Database Server.

The application uses ReportViewer Control which is part of an ASPX page deployed on the Web Server. For ReportViewer Control to fetch data from Reporting Services using RS API, we have to set ReportServerUrl and Report Path. In this scenario, the web server cannot communicate to the database server directly. The web server is in the DMZ and it can only communicate with the Application Server which is in a separate Network.

How can I use Report Viewer Control to fetch data from Reporting Services which is on the Database Server.

Thanks & Regards,

Rajiv

I am afraid you won't like the answer but the Report Viewer control assumes a direct connection to the Report Server web service. It looks like in your situation, you need to install RS on the application server. A split deployment scenario is also an option (RS middle tier on the application server, while the catalog is on the database server) but you will need two licenses. Finally, in case you wan't to get innovative, try implementing an HttpHandler on the application server that would intercept SOAP and URL requests generated by the ReportViewer and forward them to the database server. I haven't done this but it should be possible. If you decide to try the last option, please post your findings here.|||

Hi,

Thanks for your reply. I am working on the approach that you have suggested. I have created an HttpHandler which is deployed as an Application Gateway on the Application Server. In the process request method of HttpHandler I am using HttpContext to get the current request and create a new request to the reporting server.

I am using windows XP, IIS 5.1. , Microsoft Visual Studio 2005 and Asp.net 2.0.

Scenario : Request an ASP.NET Page from the Webserver... which in turn makes a new request using HttpHandler which invokes Reporting Server.

"abc.aspx" page includes report viewer control. This page is deployed on the web server. The following properties are set for ReportViewer Control.

ReportVwrObj.ServerReport.ReportServerUrl = HTTPHandlerURL;

ReportVwrObj.ServerReport.ReportPath = ConfigurationManager.AppSettings["WebReportResults"].ToString ( ); //report file name and path.

Using Http Handler : I was able to sucessfully create a new request once i get the request from web server........However, I came across few issues related to Response.

Below is the sample code implemented in the ProcessRequest Method of HttpHandler.

public void ProcessRequest ( HttpContext context )

{

context.Response.ContentType = "text/plain";

//Url Request

RequestURL = "http://MahineName/reportserver";

///create the web request to get the remote stream

HttpWebRequest objRequest = ( HttpWebRequest ) WebRequest.Create ( RequestURL );

//objRequest.Credentials = CredentialCache.DefaultNetworkCredentials;

NetworkCredential nt = new NetworkCredential ( "Username", "Password", "Domain." );

objRequest.Credentials = nt;

objRequest.KeepAlive = false;

boolException = false;//clear exception

objResponse = ( HttpWebResponse ) objRequest.GetResponse ( );

if ( ( objResponse.ContentType.ToLower ( ).IndexOf ( "html" ) >= 0 ) || ( objResponse.ContentType.ToLower ( ).IndexOf ( "javascript" ) >= 0 )

||( objResponse.ContentType.ToLower ( ).IndexOf ( "xml" ) >= 0 ) )

{

//this objResponse is HTML Content, so we must parse it

StreamReader objReadStream = new StreamReader ( objReceiveStream, Encoding.Default );

//Uri test = new Uri(strRemoteUrl);

strContent = "";

strContent = objReadStream.ReadToEnd ( );

context.Response.ContentType = objResponse.ContentType;

context.Response.Flush ( );

context.Response.Write ( strContent );

///close streams

objReadStream.Close ( );

objResponse.Close ( );

}

context.Response.End ( );

}

In the above code, I have created a new httpwebrequest to forward the request to the reporting server. For the newly created request i get the response and flush it . I came across the below error while following this approach.

  • Response is not well-formed XML.
  • Data at the root level is invalid. Line 1, position 1.
  • Any Clue on this ?

    |||Use a listener such as tcpTrace or SoapUtil to capture the request from the HttpHandler by redirecting to http://MahineName:8080/reportserver. It looks like the XML got distorted or something.
  • Report Viewer Question

    I am using rs on a SQL 2000 DB and have an application built using VWDE 2005
    to display reports. I installed the ReportViewer control and set the
    appropriate URL and report path. When I open the page, I first get a popup
    to enter the password (is there a way to avoid this?) and then I get what
    looks like a report manager window on the screen. I have to navigate to my
    reports, select the one I want and then click on the "Full Screen" icon to
    see the report.
    How can I get a page to simply present the report when opened?
    WayneIs the RS installed on SQL 2000 DB RS 2005 or RS 2000. If you are going to
    use the new controls to display reports you need to have RS 2005 installed
    (which can use a SQL Server 2000 DB, that is what I am doing).
    If you want it hardcode during design then using the for Report Path (click
    on the upper right of the control to fill in the report tasks) put in
    something like this: /MyFolder/MyReport not sure if case sensitive but it
    could be. For your server this is what I have: http://Myserver/ReportServer
    Bruce Loehle-Conger
    MVP SQL Server Reporting Services
    "Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
    news:ehdD%23G19FHA.160@.TK2MSFTNGP12.phx.gbl...
    >I am using rs on a SQL 2000 DB and have an application built using VWDE
    >2005 to display reports. I installed the ReportViewer control and set the
    >appropriate URL and report path. When I open the page, I first get a popup
    >to enter the password (is there a way to avoid this?) and then I get what
    >looks like a report manager window on the screen. I have to navigate to my
    >reports, select the one I want and then click on the "Full Screen" icon to
    >see the report.
    > How can I get a page to simply present the report when opened?
    > Wayne
    >|||The RS is on a SQL Server 2000 (NOT 2005). It is a service I buy - I don't
    own the server.
    "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
    news:O4u0TFb%23FHA.1028@.TK2MSFTNGP11.phx.gbl...
    > Is the RS installed on SQL 2000 DB RS 2005 or RS 2000. If you are going to
    > use the new controls to display reports you need to have RS 2005 installed
    > (which can use a SQL Server 2000 DB, that is what I am doing).
    > If you want it hardcode during design then using the for Report Path
    > (click on the upper right of the control to fill in the report tasks) put
    > in something like this: /MyFolder/MyReport not sure if case sensitive
    > but it could be. For your server this is what I have:
    > http://Myserver/ReportServer
    >
    > --
    > Bruce Loehle-Conger
    > MVP SQL Server Reporting Services
    > "Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
    > news:ehdD%23G19FHA.160@.TK2MSFTNGP12.phx.gbl...
    >>I am using rs on a SQL 2000 DB and have an application built using VWDE
    >>2005 to display reports. I installed the ReportViewer control and set the
    >>appropriate URL and report path. When I open the page, I first get a popup
    >>to enter the password (is there a way to avoid this?) and then I get what
    >>looks like a report manager window on the screen. I have to navigate to my
    >>reports, select the one I want and then click on the "Full Screen" icon to
    >>see the report.
    >> How can I get a page to simply present the report when opened?
    >> Wayne
    >|||I am pretty sure that the server needs to be RS2005. Looking at the info on
    the controls it specifies RS 2005 for the server report. If you service
    upgrades to RS 2005, they can continue to host RS 2000 reports. RS 2005 is
    supposed to be backward compatible.
    Bruce Loehle-Conger
    MVP SQL Server Reporting Services
    "Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
    news:OGU9aOd%23FHA.2300@.TK2MSFTNGP10.phx.gbl...
    > The RS is on a SQL Server 2000 (NOT 2005). It is a service I buy - I don't
    > own the server.
    >
    > "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
    > news:O4u0TFb%23FHA.1028@.TK2MSFTNGP11.phx.gbl...
    >> Is the RS installed on SQL 2000 DB RS 2005 or RS 2000. If you are going
    >> to use the new controls to display reports you need to have RS 2005
    >> installed (which can use a SQL Server 2000 DB, that is what I am doing).
    >> If you want it hardcode during design then using the for Report Path
    >> (click on the upper right of the control to fill in the report tasks) put
    >> in something like this: /MyFolder/MyReport not sure if case sensitive
    >> but it could be. For your server this is what I have:
    >> http://Myserver/ReportServer
    >>
    >> --
    >> Bruce Loehle-Conger
    >> MVP SQL Server Reporting Services
    >> "Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
    >> news:ehdD%23G19FHA.160@.TK2MSFTNGP12.phx.gbl...
    >>I am using rs on a SQL 2000 DB and have an application built using VWDE
    >>2005 to display reports. I installed the ReportViewer control and set the
    >>appropriate URL and report path. When I open the page, I first get a
    >>popup to enter the password (is there a way to avoid this?) and then I
    >>get what looks like a report manager window on the screen. I have to
    >>navigate to my reports, select the one I want and then click on the "Full
    >>Screen" icon to see the report.
    >> How can I get a page to simply present the report when opened?
    >> Wayne
    >>
    >|||Thanks for the information - I'll check with my service provider.
    Wayne
    "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
    news:%23GcxKud%23FHA.160@.TK2MSFTNGP12.phx.gbl...
    >I am pretty sure that the server needs to be RS2005. Looking at the info on
    >the controls it specifies RS 2005 for the server report. If you service
    >upgrades to RS 2005, they can continue to host RS 2000 reports. RS 2005 is
    >supposed to be backward compatible.
    >
    > --
    > Bruce Loehle-Conger
    > MVP SQL Server Reporting Services
    > "Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
    > news:OGU9aOd%23FHA.2300@.TK2MSFTNGP10.phx.gbl...
    >> The RS is on a SQL Server 2000 (NOT 2005). It is a service I buy - I
    >> don't own the server.
    >>
    >> "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
    >> news:O4u0TFb%23FHA.1028@.TK2MSFTNGP11.phx.gbl...
    >> Is the RS installed on SQL 2000 DB RS 2005 or RS 2000. If you are going
    >> to use the new controls to display reports you need to have RS 2005
    >> installed (which can use a SQL Server 2000 DB, that is what I am doing).
    >> If you want it hardcode during design then using the for Report Path
    >> (click on the upper right of the control to fill in the report tasks)
    >> put in something like this: /MyFolder/MyReport not sure if case
    >> sensitive but it could be. For your server this is what I have:
    >> http://Myserver/ReportServer
    >>
    >> --
    >> Bruce Loehle-Conger
    >> MVP SQL Server Reporting Services
    >> "Wayne Wengert" <wayneSKIPSPAM@.wengert.org> wrote in message
    >> news:ehdD%23G19FHA.160@.TK2MSFTNGP12.phx.gbl...
    >>I am using rs on a SQL 2000 DB and have an application built using VWDE
    >>2005 to display reports. I installed the ReportViewer control and set
    >>the appropriate URL and report path. When I open the page, I first get a
    >>popup to enter the password (is there a way to avoid this?) and then I
    >>get what looks like a report manager window on the screen. I have to
    >>navigate to my reports, select the one I want and then click on the
    >>"Full Screen" icon to see the report.
    >> How can I get a page to simply present the report when opened?
    >> Wayne
    >>
    >>
    >

    Report Viewer Issue in Visual Studio 2005 Beta 2. for Microsoft Reporting Services

    Hi

    I am trying to display Microsoft Reporting Service Reports from windows application.

    I have application window with Report viewer control.

    I have assigned valid path and URI from Server report properties in report viewer control. When I try to display the reports

    Error is "

    "The attempt to connect to the report server failed. Check your connection information and that the report server is compaitble version. The request failed with HTTP status 404: Not Found.

    Please help me..Do I need to set any credential for my reportviewer control? then how?

    this.reportViewer1.ServerReport.DisplayName = "SampleReport";

    this.reportViewer1.ServerReport.ReportPath = "/SampleReportFolder/SampleReport";

    this.reportViewer1.ServerReport.ReportServerUrl = new System.Uri("http://laptop/reportserver", System.UriKind.Absolute);

    thanks in advance.

    KamalKamal,

    What version of Report Server are you connecting to? The ReportViewer control is not compatible with SQL Server 2000 Reporting Services. You need the April CTP of Report Server. Your code looks OK otherwise.

    Rajeev|||

    I do have the same problem. My installation is:

    - VS.NET 2003
    - Sql Server 2000 Dev
    - Reporting Services for Sql Server 2000 + SP1
    - VS.NET 2005 Beta 2
    - Sql Server 2005 CTP April 2005

    I would like to use VS.NET 2005 Beta 2 under "Go live license" but need the Sql Server 2000 Reporting Services as my customer will not upgrade a existing Sql Server 2000 installation.

    Is it possible to use this combination?

    Thanks,
    Dirk

    |||

    Please make sure your setting in your webconfig

    [Thanks to Akilal_MSFT]

    - fix the ReportService.asmx error with replacing the <assemblies> section in the <system.web> section of the C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\web.config file:

    <assemblies>
    <clear />
    <add assembly="ReportingServicesWebServer" />
    <add assembly="mscorlib" />
    <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <add assembly="System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    </assemblies>

    Make sure the web.config files for reportserver and reportmanager have full access:
    Change the following line in both web.config files:
    <trust level="Full" originUrl="" />
    Location: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer
    and: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportManager

    |||

    Hai,
    I create a window application and i wish to use the report viewer to view the reports that published to the server. Here is my code in VB.NEt

    ReportViewer1.ServerReport.DisplayName = "SampleReport"

    ReportViewer1.ServerReport.ReportPath = "/SampleReport/Report1"

    ReportViewer1.ServerReport.ReportServerUrl = New System.Uri("http://localhost/reportserver")

    Is there any problem to my code? why the report viewer didnt show anything and no error occured when i run the application?

    the real path to show the report using report manager is as below:
    http://localhost/ReportServer/Pages/ReportViewer.aspx?/SampleReport/Report1&rs:Command=Render
    Am i need to change the reportpath same as above?

    Another question is : Can i print the reports using my application? means i press a button print in my application and then the report can be print without using the report viewer.

    Kindly wait for your reply.
    Please email to me too if possible : elainelikim@.gmail.com

    |||Did you find the solution to the above problem? I am having a similar issue. I add a reportviewer control in my webapp. I am using the ServerReprot and did specify report path etc. When I view the form, I can see the parameter page for the report fine but when I click on View report button, it basically does not do anything.
    Thanks|||

    Your issue is because it is SQL 2k RS you are hitting.

    I have the same issue and have not found the resolution yet.

    Except I have read things suggesting the VS05 ReportViewer does not work with SQL 2000 RS. I suppose it seems right to me; I have resorted to a Web Browser control in WinForms as a temp fix to the issue.

    Report Viewer Issue in Visual Studio 2005 Beta 2. for Microsoft Reporting Services

    Hi

    I am trying to display Microsoft Reporting Service Reports from windows application.

    I have application window with Report viewer control.

    I have assigned valid path and URI from Server report properties in report viewer control. When I try to display the reports

    Error is "

    "The attempt to connect to the report server failed. Check your connection information and that the report server is compaitble version. The request failed with HTTP status 404: Not Found.

    Please help me..Do I need to set any credential for my reportviewer control? then how?

    this.reportViewer1.ServerReport.DisplayName = "SampleReport";

    this.reportViewer1.ServerReport.ReportPath = "/SampleReportFolder/SampleReport";

    this.reportViewer1.ServerReport.ReportServerUrl = new System.Uri("http://laptop/reportserver", System.UriKind.Absolute);

    thanks in advance.

    KamalKamal,

    What version of Report Server are you connecting to? The ReportViewer control is not compatible with SQL Server 2000 Reporting Services. You need the April CTP of Report Server. Your code looks OK otherwise.

    Rajeev
    |||

    I do have the same problem. My installation is:

    - VS.NET 2003
    - Sql Server 2000 Dev
    - Reporting Services for Sql Server 2000 + SP1
    - VS.NET 2005 Beta 2
    - Sql Server 2005 CTP April 2005

    I would like to use VS.NET 2005 Beta 2 under "Go live license" but need the Sql Server 2000 Reporting Services as my customer will not upgrade a existing Sql Server 2000 installation.

    Is it possible to use this combination?

    Thanks,
    Dirk

    |||

    Please make sure your setting in your webconfig

    [Thanks to Akilal_MSFT]

    - fix the ReportService.asmx error with replacing the <assemblies> section in the <system.web> section of the C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\web.config file:

    <assemblies>
    <clear />
    <add assembly="ReportingServicesWebServer" />
    <add assembly="mscorlib" />
    <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <add assembly="System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    </assemblies>

    Make sure the web.config files for reportserver and reportmanager have full access:
    Change the following line in both web.config files:
    <trust level="Full" originUrl="" />
    Location: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer
    and: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportManager

    |||

    Hai,
    I create a window application and i wish to use the report viewer to view the reports that published to the server. Here is my code in VB.NEt

    ReportViewer1.ServerReport.DisplayName = "SampleReport"

    ReportViewer1.ServerReport.ReportPath = "/SampleReport/Report1"

    ReportViewer1.ServerReport.ReportServerUrl = New System.Uri("http://localhost/reportserver")

    Is there any problem to my code? why the report viewer didnt show anything and no error occured when i run the application?

    the real path to show the report using report manager is as below:
    http://localhost/ReportServer/Pages/ReportViewer.aspx?/SampleReport/Report1&rs:Command=Render
    Am i need to change the reportpath same as above?

    Another question is : Can i print the reports using my application? means i press a button print in my application and then the report can be print without using the report viewer.

    Kindly wait for your reply.
    Please email to me too if possible : elainelikim@.gmail.com

    |||Did you find the solution to the above problem? I am having a similar issue. I add a reportviewer control in my webapp. I am using the ServerReprot and did specify report path etc. When I view the form, I can see the parameter page for the report fine but when I click on View report button, it basically does not do anything.
    Thanks
    |||

    Your issue is because it is SQL 2k RS you are hitting.

    I have the same issue and have not found the resolution yet.

    Except I have read things suggesting the VS05 ReportViewer does not work with SQL 2000 RS. I suppose it seems right to me; I have resorted to a Web Browser control in WinForms as a temp fix to the issue.

    Report Viewer for a Windows application

    Is there a report viewer for a window application? I need to plug a report
    into a Vb.Net windows app.
    Thanks.Yes, there is a ReportViewer.dll which is great for ASP.NET applications.
    This is installed in the folder YoursQLInstallfolder\Reporting
    Services\Samples\Applications\ReportViewer.
    But for windows applications why not use the web browser control? Add it to
    your Windows project toolbox by doing Tools,Add/Remove Toolbox Items select
    COM Components tab, then put a checkbox against Microsoft Web Browser
    (filename c:\windows\system32\shdocvw.dll). This adds it to your toolbox. Now
    add it to your Windows form; the default name for the control when added is
    AxWebBrowser1.
    Now you can do:
    axWebBrowser1.Navigate("http://MyServer/ReportServer?" & reportPath)
    for example:
    axWebBrowser1.Navigate("http://MyServer/ReportServer?/Sample
    Reports/Territory Sales Drilldown")
    HTH
    Charles Kangai, MCT, MCDBA
    "Ed Willis" wrote:
    > Is there a report viewer for a window application? I need to plug a report
    > into a Vb.Net windows app.
    > Thanks.
    >
    >
    >|||That's great I was able to bring the report up. I cannot get the export to
    excel to work. If I click Open after clicking on the export nothing happens.
    Is there security problems with exporting?
    Thanks.
    "Charles Kangai" <CharlesKangai@.discussions.microsoft.com> wrote in message
    news:790C7718-0D03-40B1-9BC0-CC4DD08BDD51@.microsoft.com...
    > Yes, there is a ReportViewer.dll which is great for ASP.NET applications.
    > This is installed in the folder YoursQLInstallfolder\Reporting
    > Services\Samples\Applications\ReportViewer.
    > But for windows applications why not use the web browser control? Add it
    > to
    > your Windows project toolbox by doing Tools,Add/Remove Toolbox Items
    > select
    > COM Components tab, then put a checkbox against Microsoft Web Browser
    > (filename c:\windows\system32\shdocvw.dll). This adds it to your toolbox.
    > Now
    > add it to your Windows form; the default name for the control when added
    > is
    > AxWebBrowser1.
    > Now you can do:
    > axWebBrowser1.Navigate("http://MyServer/ReportServer?" & reportPath)
    > for example:
    > axWebBrowser1.Navigate("http://MyServer/ReportServer?/Sample
    > Reports/Territory Sales Drilldown")
    > HTH
    > Charles Kangai, MCT, MCDBA
    > "Ed Willis" wrote:
    >> Is there a report viewer for a window application? I need to plug a
    >> report
    >> into a Vb.Net windows app.
    >> Thanks.
    >>
    >>|||You need to call the web service's Render method. This creates an array of
    bytes that you can write to a file. The Render method accepts a format
    parameter.
    This is what you need to do:
    1) add the Reporting Services web reference to your project. The web
    reference is http://Yourserver/ReportServer/ReportService.asmx
    when you add it, you have to give it a name, such as RServer.
    2) At the top of your form window code add:
    Imports YourProjectName.RServer
    Imports System.IO
    3) declare and create an instance of the Reporting Service. I like to do it
    at form level, within the Form1 class:
    dim rs as New ReportingService
    4) Assuming you are using code behind button to export to excel:
    private sub Button1_Click(...)
    dim historyid as string = nothing
    dim deviceinfo as string = nothing
    dim paramvalues() as ParameterValue = nothing
    dim credentials() as DataSourceCredentials = nothing
    dim showhide as string = nothing
    dim encoding as string = nothing
    dim mimetype as string = nothing
    dim warnings() as Warning = nothing
    dim paramsused() as ParameterValue
    dim streamids() as string = nothing
    dim myRenderedReport as byte() = _
    rs.Render("/Sample Reports/Territory Sales DrillDown", "EXCEL", historyid,
    deviceinfo, paramvalues, credentials, showhide, encoding, mimetype,
    paramsused, warnings, streamids)
    dim fs as FileStream = File.OpenWrite("c:\MyFile.xls")
    fs.Write(myRenderedReport, 0, myRenderedReport.Length())
    fs.Close()
    End Sub
    you can do:
    dim myRenderedReport as byte[] = TheWebService.Render(FullReportPath, "EXCEL")
    dim myFileStream as filestream
    "Ed Willis" wrote:
    > That's great I was able to bring the report up. I cannot get the export to
    > excel to work. If I click Open after clicking on the export nothing happens.
    > Is there security problems with exporting?
    > Thanks.
    > "Charles Kangai" <CharlesKangai@.discussions.microsoft.com> wrote in message
    > news:790C7718-0D03-40B1-9BC0-CC4DD08BDD51@.microsoft.com...
    > > Yes, there is a ReportViewer.dll which is great for ASP.NET applications.
    > > This is installed in the folder YoursQLInstallfolder\Reporting
    > > Services\Samples\Applications\ReportViewer.
    > >
    > > But for windows applications why not use the web browser control? Add it
    > > to
    > > your Windows project toolbox by doing Tools,Add/Remove Toolbox Items
    > > select
    > > COM Components tab, then put a checkbox against Microsoft Web Browser
    > > (filename c:\windows\system32\shdocvw.dll). This adds it to your toolbox.
    > > Now
    > > add it to your Windows form; the default name for the control when added
    > > is
    > > AxWebBrowser1.
    > >
    > > Now you can do:
    > > axWebBrowser1.Navigate("http://MyServer/ReportServer?" & reportPath)
    > >
    > > for example:
    > > axWebBrowser1.Navigate("http://MyServer/ReportServer?/Sample
    > > Reports/Territory Sales Drilldown")
    > >
    > > HTH
    > >
    > > Charles Kangai, MCT, MCDBA
    > >
    > > "Ed Willis" wrote:
    > >
    > >> Is there a report viewer for a window application? I need to plug a
    > >> report
    > >> into a Vb.Net windows app.
    > >>
    > >> Thanks.
    > >>
    > >>
    > >>
    > >>
    > >>
    >
    >|||A ReportViewer control will be available in Visual Studio 2005 (aka
    Whidbey). Whidbey Beta 1 does not have the ReportViewer control, but Beta 2,
    scheduled for early 2005, will contain the control. There will be a WinForms
    version and a WebForms version. The ReportViewer control will have built-in
    ability to process and render reports, which means a Report Server is
    unnecessary. If a Report Server is available then the controls will be able
    to connect to the Report Server to view reports that are stored and
    processed on the Report Server. Licensing has not been finalized, but we are
    looking into making this control freely redistributable.
    --
    Rajeev Karunakaran [MSFT]
    Microsoft SQL Server Reporting Services
    This posting is provided "AS IS" with no warranties, and confers no rights.
    "Ed Willis" <ed_willis@.acsi.orgnospam> wrote in message
    news:etizP1j1EHA.1524@.TK2MSFTNGP09.phx.gbl...
    > Is there a report viewer for a window application? I need to plug a report
    > into a Vb.Net windows app.
    > Thanks.
    >
    >

    Report Viewer for a Windows application

    Is there a report viewer for a window application? I need to plug a report
    into a Vb.Net windows app.
    Thanks.
    Have you Googled this topic? There are many reporting controls available.
    Adam Machanic
    SQL Server MVP
    http://www.sqljunkies.com/weblog/amachanic
    "Ed Willis" <ed_willis@.acsi.orgnospam> wrote in message
    news:uPBYERj1EHA.3840@.tk2msftngp13.phx.gbl...
    > Is there a report viewer for a window application? I need to plug a report
    > into a Vb.Net windows app.
    > Thanks.
    >

    Report Viewer for a Windows application

    Is there a report viewer for a window application? I need to plug a report
    into a Vb.Net windows app.
    Thanks.Have you Googled this topic? There are many reporting controls available.
    Adam Machanic
    SQL Server MVP
    http://www.sqljunkies.com/weblog/amachanic
    --
    "Ed Willis" <ed_willis@.acsi.orgnospam> wrote in message
    news:uPBYERj1EHA.3840@.tk2msftngp13.phx.gbl...
    > Is there a report viewer for a window application? I need to plug a report
    > into a Vb.Net windows app.
    > Thanks.
    >

    Report Viewer for a Windows application

    Is there a report viewer for a window application? I need to plug a report
    into a Vb.Net windows app.
    Thanks.Have you Googled this topic? There are many reporting controls available.
    --
    Adam Machanic
    SQL Server MVP
    http://www.sqljunkies.com/weblog/amachanic
    --
    "Ed Willis" <ed_willis@.acsi.orgnospam> wrote in message
    news:uPBYERj1EHA.3840@.tk2msftngp13.phx.gbl...
    > Is there a report viewer for a window application? I need to plug a report
    > into a Vb.Net windows app.
    > Thanks.
    >

    Friday, March 23, 2012

    Report Viewer Date Format..

    Hi,

    I have done a report using the reportviewer page, and placed it in my web application and the last thing i need to do is sort out the date formats, primarily to a UK time..

    1. I want to display todays date on the page, but in the format "Wednesday, 4 April 2007". I seem to be able to get the various parts needed, but not put them together in the same textbox, could someone help me with the concatonation?

    =WeekdayName(Weekday(DateValue(DateString)))

    2. All the dates extracted from the database are in the format MM/dd/yyyy, and i need them to be in dd/MM/yyyy, i am completely lost on how to do this...

    any help will be much appreciated, even if you could tell me where i can go look up the syntax for this markup

    regards

    Chris

    check this for all posible date formats:http://msdn2.microsoft.com/en-us/library/8kb3ddd4.aspx

    |||

    cheers for the link, don't know why i was having such a hard time finding it..

    anyway, all sorted now, in the end i didn't do any sort of concatenation, but instead just used =FormatDateTime(Now(), 1)

    and the other days were as easy as putting dd/MM/yyyy HH:mm in the fomrat field, nice

    cheers!

    sql

    Report Viewer Control to display reports

    I have reports designed and deployed at the report server running Sql 2005
    SSRS. I want to display those report in a vb.net Windows application using a
    report viewer control and I have searched the internet for the past 2 weeks
    and I still can not find anything or samples on how to do this. I wonder if
    it is doable. Thanks.Paul,
    You should find the report viewer reference at
    http://msdn2.microsoft.com/en-us/library/microsoft.reporting.winforms(vs.80).aspx .
    However, if you want just to show a predefined report for the end users,
    Visual Studio offers the basic settings for the control, such as Report
    server and report name. It is not a big magic :)
    I got this sample, hope it will help for you.
    http://www.devx.com/dotnet/Article/30424
    Regards,
    Janos
    "Paul" <paul_mak@.shaw.ca> wrote in message
    news:O2CwgFviHHA.5052@.TK2MSFTNGP05.phx.gbl...
    >I have reports designed and deployed at the report server running Sql 2005
    >SSRS. I want to display those report in a vb.net Windows application using
    >a report viewer control and I have searched the internet for the past 2
    >weeks and I still can not find anything or samples on how to do this. I
    >wonder if it is doable. Thanks.
    >|||Some great samples at http://www.gotreportviewer.com
    --
    Andy Potter
    blog : http://sqlreportingservices.spaces.live.com
    info@.(NOSPAM)lakeclaireenterprises.com
    "Paul" <paul_mak@.shaw.ca> wrote in message
    news:O2CwgFviHHA.5052@.TK2MSFTNGP05.phx.gbl...
    >I have reports designed and deployed at the report server running Sql 2005
    >SSRS. I want to display those report in a vb.net Windows application using
    >a report viewer control and I have searched the internet for the past 2
    >weeks and I still can not find anything or samples on how to do this. I
    >wonder if it is doable. Thanks.
    >

    report viewer and reporting services security

    i have a web application in studio 2005 using the report viewer control. i have my own security model implemented on my web pages for clients [1..n] each of the [1..n] clients should be able to view reports of their order history. i have the report viewer set up in url mode. the question is that when i have drill downs in my final reports, a user with some tech knowledge, would be able to obtain the url to my sql server running reporting services.

    the sql server will not be given a port 80 acess. how do i go about displaying reports without any savvy user being able to locate the server locations/credentials?

    i donot want to create windows account for each [1..n] clients as this is ever growing

    If by "url mode" you mean hyperlinks pointing to the report URL address, you should rethink your approach. Instead, consider server-side report generation. In this case, SSRS does reasonable job to protect the parameters as you can see by inspecting the drilldown hyperlinks.|||

    Teo, thats what i mean. How would i go about the approach that you are suggesting?

    - would i have to create subscriptions to generate the reports and save them to disk?

    \

    |||If i am to use SOAP then the interactive features are not availabe as this read up provides that info:

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnhcvb04/html/vb04k8.asp|||You will host the VS.NET 2005 ReportViewer control on your ASP.NET page and bind it to the server report. If you are new to the Report Viewer control, you may find the following article useful.|||I did read the article but from read ups, the drill down interactive feature is lost when using SOA/web services to gerenate report in 'remote mode'. is that statetment true? if not then i guess this would work out well|||This is incorrect. SSRS 2005 enhances the web service APIs to support interactive features so interactive featues will work with the VS.NET ReportViewer.

    Report Viewer access permissions problem

    Hi,
    I have a Report Viewer intergrated in my application and deployed on server. When I try to access that from internet it says Network/Service account has not enough permission to run that task. Any idea how to give rights to SQL Server 2005 Service account to run reports from internet.

    Thanks

    add the NT AUTHORITY\NETWORK SERVICE as USER to your db|||

    Hi,

    Thanks for the reply

    I already added NT AUTHORITY\NETWORK SERVICE as user for DB but when loading report from web page that its says that NT AUTHORITY\NETWORK SERVICE dont have enough permission to run that task for report viewer. Please any idea

    Thanks

    sql

    Report Viewer

    I need to view reports from my application using a report viewer component
    (specifically with the AxSHDocVw.AxWebBrowser component). which appears in
    the toolbox.
    how do i add this component to the toolbox?
    Thanks
    SanjeevIf you have the Dll... Right click inside the tools box in the dev
    environment and choose add/remove items... I dialog box will pop up allowing
    you to make the reference to your dll...
    --
    Wayne Snyder, MCDBA, SQL Server MVP
    Mariner, Charlotte, NC
    www.mariner-usa.com
    (Please respond only to the newsgroups.)
    I support the Professional Association of SQL Server (PASS) and it's
    community of SQL Server professionals.
    www.sqlpass.org
    "Sanjeev" <sanjeev@.microsoft.com> wrote in message
    news:uIl2Yh$EFHA.560@.TK2MSFTNGP15.phx.gbl...
    >I need to view reports from my application using a report viewer component
    >(specifically with the AxSHDocVw.AxWebBrowser component). which appears in
    >the toolbox.
    > how do i add this component to the toolbox?
    > Thanks
    > Sanjeev
    >

    Wednesday, March 21, 2012

    Report Viewer

    Is there a report viewer that I can use in a windows based application, not a
    web application. If there is, where can I find it.With Widbey (Visual Studio) beta 2 they have both a winform and webform
    control. Until then the only option is to either use webservices and render
    it and show with something (i.e. render and show in IE control or render as
    PDF and view it). Or use and IE control and use URL integration.
    Bruce Loehle-Conger
    MVP SQL Server Reporting Services
    "Chris Arnold" <ChrisArnold@.discussions.microsoft.com> wrote in message
    news:6FAF10A6-E889-464D-8ECC-C66F921BF618@.microsoft.com...
    > Is there a report viewer that I can use in a windows based application,
    not a
    > web application. If there is, where can I find it.|||You can get a byte array of a report's output by using Reporting Services
    Render() method.
    Now you have plenty of options.
    You can use windows IE browser control and after encoding byte array to a
    char[] array just display output inside of the control.
    Or you can save it as a file, if you'd like, with a random guid like name in
    a temp directory and set it as a source file of your browser compnent.
    About the same appoach applicable to the pdf control from Adobe or MS office
    windows components.
    "Chris Arnold" <ChrisArnold@.discussions.microsoft.com> wrote in message
    news:6FAF10A6-E889-464D-8ECC-C66F921BF618@.microsoft.com...
    > Is there a report viewer that I can use in a windows based application,
    > not a
    > web application. If there is, where can I find it.|||Have you looked at:
    C:\Program Files\Microsoft SQL Server\MSSQL\Reporting
    Services\Samples\Applications\ReportViewer
    --
    Regards
    <<<Bryan Avery>>
    "Chris Arnold" wrote:
    > Is there a report viewer that I can use in a windows based application, not a
    > web application. If there is, where can I find it.