Monday, March 26, 2012
Gaps in my reports
parameters which are used to populate the sub-reports.
The subreports are situated under eachother in the designer with nogaps in
between and the tables within the sub-reports have visibility set to hidden
when the RowCount of the dataset is 0... I would expect this to mean hide the
contents of the report when there is no data.
Why does Reporting Services add gaps where my sub-reports should be when the
main report renders ?.. Is there a way to stop this.
Help.. Ive been pulling my hair out over this one!.. ThanksJust an idea, you may want to try applying the expression in the Visibility
Properties for the ROW (not the subreport). Hopefully that will take care of
the blank row(s).
"DecksTerrorT" wrote:
> I have a report with 10 subreports in it. The initial report only contains 2
> parameters which are used to populate the sub-reports.
> The subreports are situated under eachother in the designer with nogaps in
> between and the tables within the sub-reports have visibility set to hidden
> when the RowCount of the dataset is 0... I would expect this to mean hide the
> contents of the report when there is no data.
> Why does Reporting Services add gaps where my sub-reports should be when the
> main report renders ?.. Is there a way to stop this.
> Help.. Ive been pulling my hair out over this one!.. Thanks|||Maybe my post was a litle cryptic.. let me try again.
I have a report.
That report has 10 subreports all underneath each other.
Within the subreports the all items have a visibility to false when RowCount
= 0.
So why does the main report display a gap once rendered where the sub-report
should be ?
Hope this makes it alittle clearer.
Decks.
"Nick P." wrote:
> Just an idea, you may want to try applying the expression in the Visibility
> Properties for the ROW (not the subreport). Hopefully that will take care of
> the blank row(s).
> "DecksTerrorT" wrote:
> > I have a report with 10 subreports in it. The initial report only contains 2
> > parameters which are used to populate the sub-reports.
> >
> > The subreports are situated under eachother in the designer with nogaps in
> > between and the tables within the sub-reports have visibility set to hidden
> > when the RowCount of the dataset is 0... I would expect this to mean hide the
> > contents of the report when there is no data.
> >
> > Why does Reporting Services add gaps where my sub-reports should be when the
> > main report renders ?.. Is there a way to stop this.
> >
> > Help.. Ive been pulling my hair out over this one!.. Thanks|||I had to overcome a similar "gap" problem where there could be a LOT of
hidden lines.... the only way I was able to do this was to :
1. select the entire "table" individually in each report
2. edit the size of each table by dividing the length by 10 (so 2.74
inches bacame .274 inches)
3. This gives a totally scrunched up view in the layout tab (which is a
pain for editing later on ... have to multiply by 10 to be able to view
it and then change it back again...)
4. But now ... when I get to actually view the result ... it looks a
LOT better.
5. This solution did not get rid of all the gaps all the time, but it
REALLY made a huge significant difference.
good luck...
Gaps in my key ID field
Greetings,
I am new to SQL Server. I've created a database with a key ID field that is set to automatically increment. Well, after adding records I've got some gaps in my numbering and want to renumber from 1 to eof.
What is the best way to do this in SQL Server 2005?
Thank you.
I have covered it in the thread below. Hope this helps.
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2072438&SiteID=1
|||Thank you!|||
Elizabeth Davis wrote:
Thank you!
I am glad I could help.
gaps in integer ranges
I have a table variable that stores integer ranges representing times of the day:
select * from @.reservations
room date | starttime | endtime
1 2004-12-11 0 1440 (represents an entire day in minutes)
2 2004-12-12 420 1020
3 2004-12-14 200 600
4 2004-12-15 0 200
4 2004-12-15 500 1000
I need to be able to return the minutes that are open for each room. The @.reservations table shows me the times that are blocked.
I'd like to analyze each row and return an integer range representing gaps in the day, where 0-1440 represents an entire day.
Based on the @.reservations table above, I'd like to write something that returns:
room date starttime endtime
2 2004-12-12 0 420
2 2004-12-12 1020 1440
3 2004-12-14 0 200
3 2004-12-14 600 1440
4 2004-12-15 200 500
4 2004-12-15 1000 1440
This result represents the times in minutes that are available.
I have no clue how to do this without using a numbers table and checking each minute in each day for each row in the table. Id like to not do that because of sheer performance reasons. There is a possiblity that I will have hundreds of rows in the @.reservations table.
I was hoping someone could provide some insight as to how to approach this. Thank you ahead of time! :)in the results, do you also want
1 2004-12-12 0 1440
1 2004-12-13 0 1440
1 2004-12-14 0 1440
1 2004-12-15 0 1440
2 2004-12-13 0 1440
2 2004-12-14 0 1440
2 2004-12-15 0 1440
3 2004-12-11 0 1440
3 2004-12-12 0 1440
3 2004-12-13 0 1440
3 2004-12-15 0 1440
4 2004-12-11 0 1440
4 2004-12-12 0 1440
4 2004-12-13 0 1440
4 2004-12-14 0 1440
or do you just want the available ranges for dates where some part of the date is already booked?|||I want the available ranges for the dates where some part of the date is already booked
and I just thought that I will also need to know the available times if there is nothing booked in the room...yikes...
so if I have no row in my @.reservations table for room 1 on 2004-12-21 then I would want to return
1 2004-12-21 0 1440
Hmmm...would something like this work for that scenario??
I have a stored procedure that going to give me these results. I am writing a search. In the stored procedure I pass in the start date of the search and the end date of the search. So i could potentially, check that if there are no rows in the @.reservations table for that date and room, i would need to return 0-1440
thank you!|||The best way I have found to handle this functionality it to create a table in your database that consists of nothing but incrementing value from zero to ...well, whatever the highest number you end up needing.
By supplying a starting date to a SELECT query based upon this table, you can use the values to create a list of time intervals of whatever duration you choose. From this dataset, left join your Reservations table and return only the records where no corresponding Reservation exists. Voila! Your resultset shows all the unbooked times.
Gaps in borders between columns...
I have a row in my report that has 6 columns. I want to outline the row with a border, but not the column lines in between. So, I went into BorderColor, changed the Default to white and my Top and Bottom colors as Black. The problem is that where the "white" column lines are, they are displaying 1pt gaps in my outline. I tried changing the BorderStyle to Zero, but it wouldn't take it.
See sample of the report here.
Any ideas?
Thanks,
James H.
I always had problems in formatting these kind of things. You will have to try different possibilities to get this right. Sometimes, It looks different on preview when compared to the ones when deployed. Try changing the Border style, and try chaning the border color of the columns, Good Luck|||Hii
For this you can merge the cells in the row,then put one rectangle over there. then according to the width of each column put the text boxes inside the rectangle without giving any border style for the text boxes.finally give the top and bottom border for the whole rectangle.
Hope this works fine
Thanks
Mahasweta
|||>> I tried changing the BorderStyle to Zero but it wouldn't take it
I assume you mean BorderWidth here...
You're right, you can't put in 0. But you can do this:
=IIF(false,1,0)
This, plus a BorderStyle of None, for each column, seems to do what you want... not 100% positive but it looks right, check it out...
>L<
|||This would work, but gets jacked up when exporting out to excel.|||I ended up getting some help on this from a thread on sqlservercentral.com.
This is what I had to do to get a top and bottom border (no left or right borders) without the gaps in the top and bottom borders...
BorderColor
Default = White Left = White Right = White Top = Black Bottom = BlacksqlGaps in borders between columns...
I have a row in my report that has 6 columns. I want to outline the row with a border, but not the column lines in between. So, I went into BorderColor, changed the Default to white and my Top and Bottom colors as Black. The problem is that where the "white" column lines are, they are displaying 1pt gaps in my outline. I tried changing the BorderStyle to Zero, but it wouldn't take it.
See sample of the report here.
Any ideas?
Thanks,
James H.
I always had problems in formatting these kind of things. You will have to try different possibilities to get this right. Sometimes, It looks different on preview when compared to the ones when deployed. Try changing the Border style, and try chaning the border color of the columns, Good Luck|||Hii
For this you can merge the cells in the row,then put one rectangle over there. then according to the width of each column put the text boxes inside the rectangle without giving any border style for the text boxes.finally give the top and bottom border for the whole rectangle.
Hope this works fine
Thanks
Mahasweta
|||>> I tried changing the BorderStyle to Zero but it wouldn't take it
I assume you mean BorderWidth here...
You're right, you can't put in 0. But you can do this:
=IIF(false,1,0)
This, plus a BorderStyle of None, for each column, seems to do what you want... not 100% positive but it looks right, check it out...
>L<
|||This would work, but gets jacked up when exporting out to excel.|||I ended up getting some help on this from a thread on sqlservercentral.com.
This is what I had to do to get a top and bottom border (no left or right borders) without the gaps in the top and bottom borders...
BorderColor
Default = White Left = White Right = White Top = Black Bottom = Black