Showing posts with label page. Show all posts
Showing posts with label page. Show all posts

Wednesday, March 28, 2012

NoRows SubReport

Greetings,

I have a report which contains three subreports. Each subreport is contained within a rectangle in the main report so I can force a page break after each subreport. In each of the subreports, there is a graphic and a text box on one line, then another text box below those two items, then a table below all that. My problem is that if one of the subreports returns no data, it is resulting in a NoRows sort of situation and not even the graphic and the two text boxes are shown. I understand that you can set a NoRows message, but ideally, I want my NoRows message to be the graphic and the two text boxes, not a plain text message.

I'm not sure if this is even possible or at the very least if I could conditionally force a page break in my rectangles based on whether one of the subreports returns a NoRows situation.

Thanks In Advance

One thing that you can do is create a second dataset that always returns data. You can do this with a query like the following. This causes the SubReport to always report to the processing runtime that it contains data, so that it should always be processed and rendered.

Select 1 as DataValue

However, the problem with this is that the empty table will still contain the Table headers. So, you will have to make the table conditionally visible using an expression such as this.

=IsNothing(Fields!FieldName.Value)

You can pretty much use any field in the dataset to which the table is bound.

Adding the second dataset and adding the conditional visibility to the table should result in the subreport still being displayed, with the table hidden.

Ian|||

This works perfectly. Thank You. In fact, due to the NoRows parameter being set on the subreport, the table headers themselves are not shown, but instead the NoRows message is shown WITH the graphic and two text boxes. This is exactly the result I wanted.

Friday, March 23, 2012

Non-Standard Port for SQL2K

If SQL2K is not listening to the standard ports because
1433 has been changed to 14000, then what should the
connectionstring in as ASP page look like so that it uses
the correct port in order to make the connection?
object.ConnectionString(
"Provider=SQLOLEDB.1;
Data Source=MyServer;
Catalog=MyDB;
Persist Security Info=False;
UID=MyUID;
PWD=MyPWD;"
)Create an alias in the client network utility and specify the port there.
This approach is better because if the port/server changes then you don't
have to change your code.
Carlos E. Rojas
SQL Server MVP
Co-Author SQL Server 2000 programming by Example
"Michael" <anonymous@.discussions.microsoft.com> wrote in message
news:577801c3e502$311a2c40$a601280a@.phx.gbl...
quote:

> If SQL2K is not listening to the standard ports because
> 1433 has been changed to 14000, then what should the
> connectionstring in as ASP page look like so that it uses
> the correct port in order to make the connection?
> object.ConnectionString(
> "Provider=SQLOLEDB.1;
> Data Source=MyServer;
> Catalog=MyDB;
> Persist Security Info=False;
> UID=MyUID;
> PWD=MyPWD;"
> )
>
|||Thank you Carlos. I'll give it a shot.
quote:

>--Original Message--
>Create an alias in the client network utility and specify

the port there.
quote:

>This approach is better because if the port/server

changes then you don't
quote:

>have to change your code.
>--
>Carlos E. Rojas
>SQL Server MVP
>Co-Author SQL Server 2000 programming by Example
>
>"Michael" <anonymous@.discussions.microsoft.com> wrote in

message
quote:

>news:577801c3e502$311a2c40$a601280a@.phx.gbl...
uses[QUOTE]
>
>.
>

Non-Report Hyperlinks on Report Manager Home Page?

Is it possible to add hyperlinks to the Report Manager Home Page that link to other aspx pages? I have created some associated data entry aspx pages that I want to enable access to from the Report Manager Home Page (if possible).

Thanks!

It isn't...maybe you could run it inside an IFRAME, surrounded by other UI (including "your" hyperlinks)?|||

pittpanther wrote:

Is it possible to add hyperlinks to the Report Manager Home Page that link to other aspx pages? I have created some associated data entry aspx pages that I want to enable access to from the Report Manager Home Page (if possible).

Thanks!

Why not just create an "index" aspx page that would have links to reports similar to report manager? You could have this index page in the same project as the associated data entry aspx pages.

It seems to me that you're thinking about it backwards.

|||

Thanks for the replies...

The end user is already fairly comfortable with the Report Manager front end, so I am kind of stuck with it as my launching point.

The only thing I have come up with is an "empty" report accessible from the main folder that only includes the hyperlinks for the "Data Entry" aspx pages. A little kludgy though.

|||Russell - I am not familiar with an IFRAME... could you elaborate a little more?sql

Non-Report Hyperlinks on Report Manager Home Page?

Is it possible to add hyperlinks to the Report Manager Home Page that link to other aspx pages? I have created some associated data entry aspx pages that I want to enable access to from the Report Manager Home Page (if possible).

Thanks!

It isn't...maybe you could run it inside an IFRAME, surrounded by other UI (including "your" hyperlinks)?|||

pittpanther wrote:

Is it possible to add hyperlinks to the Report Manager Home Page that link to other aspx pages? I have created some associated data entry aspx pages that I want to enable access to from the Report Manager Home Page (if possible).

Thanks!

Why not just create an "index" aspx page that would have links to reports similar to report manager? You could have this index page in the same project as the associated data entry aspx pages.

It seems to me that you're thinking about it backwards.

|||

Thanks for the replies...

The end user is already fairly comfortable with the Report Manager front end, so I am kind of stuck with it as my launching point.

The only thing I have come up with is an "empty" report accessible from the main folder that only includes the hyperlinks for the "Data Entry" aspx pages. A little kludgy though.

|||Russell - I am not familiar with an IFRAME... could you elaborate a little more?

Monday, February 20, 2012

No Summary page in Management Studio

I have installed SQL Server 2005 sp2. Initialy I didn't install Report Services and Analysis Services. I next installed them using change in Add Remove Programs and still no Summary page. HELP!

I have looked for a solution to this longer than any other software search I have done to no avail.

Try to click F7 on SSMS and if no avail then try to install client tools again.|||

I uninstalled and reinstalled everything and it didn't make any difference.

Still no summary page.

I would love to have it available as it is a development server and the reports on summary page would be very usefull especially.

It works great on our other production servers. This server has the latest service packs on windows server 2003 and SQL Server 2005. SP2 is the latest also not the original one reissued 3/5.

|||

in sp2 the summary page has been renamed... it now Object Explorer Details (i don't have sp2 in my home machine... i am not remembering it exactly... ) .. You click on "View " in Top Menu bar and see the option available there

Madhu

|||

Deliquesent wrote:

I have installed SQL Server 2005 sp2 ... and no Summary page. HELP!

In SQL Server 2005 Service Pack 2, we've renamed the "Summary Page" to "Object Explorer Details". The reports no longer display in this page. They are now launched from the object in Object Explorer and open in their own report window. This allows you to open multiple reports at the same time. Thus, you can compare reports on different instances or the same report multiple times to see what has changed over time.

I gave a webcast on SP2 improvements in this area a little while ago. You should check it out:

SP2 Improvements Webcast Blog with Links to Resources:

http://blogs.msdn.com/sqlrem/archive/2007/03/20/Webcast-SP2-improvements-Resources.aspx

SP2 Improvements Webcast:

http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?EventID=1032330864&EventCategory=4&culture=en-US&CountryCode=US

Paul A. Mestemaker II

Program Manager

Microsoft SQL Server Manageability

http://blogs.msdn.com/sqlrem/

|||

Thank you very much!

Now I know.

No SRC in IMG tag in HTML Fragment

I am using the web service render command to pull out the HTML fragment to
display on a page but the SRC attribute of the IMG tags are all blank. I
know the image is available in the RenderStream but how do I link the two
together?
Is this just an HTML problem? If so where should I look?
Thanks in advance.
StevenThe location of the images can be specified via the StreamRoot device info.
However, the SRC tags should not be blank.
--
Brian Welcker
Group Program Manager
SQL Server Reporting Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"Steven Lawrence" <steven@.metagenerics.co.za> wrote in message
news:O6QzEywaEHA.3012@.tk2msftngp13.phx.gbl...
>I am using the web service render command to pull out the HTML fragment to
> display on a page but the SRC attribute of the IMG tags are all blank. I
> know the image is available in the RenderStream but how do I link the two
> together?
> Is this just an HTML problem? If so where should I look?
> Thanks in advance.
> Steven
>
>