Friday, March 23, 2012
Number of pages displayed and printed do not match
When I display this report in browser, I see there are 2 pages for this
report. But when I click the print button on page to print it, I got 4 pages
because it's printed in landscape format on paper. Now QA logged this as an
error. Does anybody have any way to make displayed and printed number of
pages match to each other?
Thanks a lot.You need to make sure that Report width + Margin width isn't more than the
given width for landscape. (29 cm or 11 inches.) If they are more than this,
you will get an extra page, and this might be empty. Sometimes an extra page
is added, but there's nothing on it, because your actual table or matrix
isn't that wide.
Kaisa M. Lindahl
"BF" <BF@.discussions.microsoft.com> wrote in message
news:DA474C38-84E0-40EF-947C-C5D61E1BA40C@.microsoft.com...
>I have a report in landscape layout because I have many columns to display.
> When I display this report in browser, I see there are 2 pages for this
> report. But when I click the print button on page to print it, I got 4
> pages
> because it's printed in landscape format on paper. Now QA logged this as
> an
> error. Does anybody have any way to make displayed and printed number of
> pages match to each other?
> Thanks a lot.|||Yes, I am very sure that my report content is not wider than the landscape
format. I spent lots of time adjusting this report. There are no empty pages
when printing.
The problem is when I print this report, I got landscape format printed 4
pages in correct format. But when I display this report within browser, the
number of lines on a browser page is more than the number of lines on the
landscape printed page. As a result, on the browser, I only have 2 pages. But
on the paper, I have 4 pages.
Any other suggestions.
Thanks.
"Kaisa M. Lindahl" wrote:
> You need to make sure that Report width + Margin width isn't more than the
> given width for landscape. (29 cm or 11 inches.) If they are more than this,
> you will get an extra page, and this might be empty. Sometimes an extra page
> is added, but there's nothing on it, because your actual table or matrix
> isn't that wide.
> Kaisa M. Lindahl
>
> "BF" <BF@.discussions.microsoft.com> wrote in message
> news:DA474C38-84E0-40EF-947C-C5D61E1BA40C@.microsoft.com...
> >I have a report in landscape layout because I have many columns to display.
> > When I display this report in browser, I see there are 2 pages for this
> > report. But when I click the print button on page to print it, I got 4
> > pages
> > because it's printed in landscape format on paper. Now QA logged this as
> > an
> > error. Does anybody have any way to make displayed and printed number of
> > pages match to each other?
> >
> > Thanks a lot.
>
>
Monday, March 19, 2012
Number Formatting Question
I have a dataset that looks like this:
0.00
17.00
-25.00
That I want to be displayed like this:
0.00
17.00
25.00-
(Note that there is a trailing space after the positive numbers so that they
will line up properly with the negative ones)
I'm having trouble getting the trailing space to show up. I've tried the
following formatting strings, but none of them seem to work:
#,##0.00 ;#,##0.00-;0.00\ ;
#,##0.00 ;#,##0.00-;0.00 ;
#,##0.00 ;#,##0.00-;0.00' '
#,##0.00 ;#,##0.00-;0.00" ";
Can anyone help me with this?
Thanks in advance,
AmyYou could use an expression in the textbox where you want the data
displayed:
=iif(Fields!<Field Name>.Value >= 0, Fields!<Field Name>.Value & " ",
Fields!<Field Name>.Value & "-")
--
Bruce Johnson [MSFT]
Microsoft SQL Server Reporting Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"aelk" <aelk@.discussions.microsoft.com> wrote in message
news:9CD9BE54-8CBC-462D-8EA3-6B6C4566BA75@.microsoft.com...
> Hello,
> I have a dataset that looks like this:
> 0.00
> 17.00
> -25.00
> That I want to be displayed like this:
> 0.00
> 17.00
> 25.00-
> (Note that there is a trailing space after the positive numbers so that
> they
> will line up properly with the negative ones)
> I'm having trouble getting the trailing space to show up. I've tried the
> following formatting strings, but none of them seem to work:
> #,##0.00 ;#,##0.00-;0.00\ ;
> #,##0.00 ;#,##0.00-;0.00 ;
> #,##0.00 ;#,##0.00-;0.00' '
> #,##0.00 ;#,##0.00-;0.00" ";
> Can anyone help me with this?
> Thanks in advance,
> Amy|||Unfortunately I've tried that & it makes the 0.00 values come out as 0.
"Bruce Johnson [MSFT]" wrote:
> You could use an expression in the textbox where you want the data
> displayed:
> =iif(Fields!<Field Name>.Value >= 0, Fields!<Field Name>.Value & " ",
> Fields!<Field Name>.Value & "-")
> --
> Bruce Johnson [MSFT]
> Microsoft SQL Server Reporting Services
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "aelk" <aelk@.discussions.microsoft.com> wrote in message
> news:9CD9BE54-8CBC-462D-8EA3-6B6C4566BA75@.microsoft.com...
> > Hello,
> > I have a dataset that looks like this:
> >
> > 0.00
> > 17.00
> > -25.00
> >
> > That I want to be displayed like this:
> > 0.00
> > 17.00
> > 25.00-
> >
> > (Note that there is a trailing space after the positive numbers so that
> > they
> > will line up properly with the negative ones)
> >
> > I'm having trouble getting the trailing space to show up. I've tried the
> > following formatting strings, but none of them seem to work:
> >
> > #,##0.00 ;#,##0.00-;0.00\ ;
> > #,##0.00 ;#,##0.00-;0.00 ;
> > #,##0.00 ;#,##0.00-;0.00' '
> > #,##0.00 ;#,##0.00-;0.00" ";
> >
> > Can anyone help me with this?
> >
> > Thanks in advance,
> > Amy
>
>
Monday, March 12, 2012
Number are displayed in the wrong format
Hi
I'm not sure if this is a .net or a SQL issue. My development machine is using SQL 2005 while the live server is SQL2000. I have a smallmoney field in the database for holding a house rent. The following is used to display the contents on the page
<asp:Label ID="lblrent" runat="server" Text='<%# Bind("rent", "(0:0.00)") %>'></asp:Label
In development, the number is displayed correctly, with the decimal place, .e.g. 200.50 but on the live server the number is displayed as 20050,00.
What I have noticed in the database is that the number is held differently
SQL 2005 - 200.5000
SQL 2000 - 20050
Is there a difference between SQL 2000 and 2005? How do I get around this problem?
Many thanks
Try using this as your formatting string. I'm not sure what would cause that problem.
{0:c}
I hope that helps,
Brendan
oops sorry do both of them list the same datatype for the column? It should be money or smallmoney for both of them. If it is not it might still have let you insert the value and now would be giving an incorrect result.
My guess would be that one of your servers is set to a culture that you aren't expecting. My guess would be the production webserver is set to a culture that uses "," as the decimal separator, and "." as the thousands separator (Considering that it printed the number 20050 as 20050,00).
|||The datatype for the columns in both databases is smallmoney, which is why I'm a bit confused as to why they are being displayed differently. Even if I manually change the entry in the SQL2000 db to a number with a decimal place, the decimal place is removed.
I tried using {0:C} as the formatstring and what I get back is 20.050,00 € on the server with SQL2000. With SQL2005 I get £200.50.
The server where the website hosted is with 1and1 using a MS Business PRO package, so I don't really have a lot of control over the SQL config. I have e-mailed tech support asking for some more information on the default settings for the SQL setup.
If I am using the same code and the same formatstring, the problem must be with the database setup. Right?
|||
No.
Put this in your web.config somewhere in the <system.web> tags:
<globalizationculture="en-US"uiCulture="en-US"/>
Now the SQL2000 server should show $20,500.00 and the SQL2005 server should show $200.50.
How did you get the data from one server to the other? Because whatever process you used also had culture problems, and the data didn't get moved correctly.
|||Thanks. That solved the problem. I changed it to en-GB, as this is a UK site and I need the £ symbol displayed. The numbers are being displayed correctly.
Only the table structure was imported to the server. No data was imported for the table with the money columns. The users are entering the data themselves.
I exported the table structure using the SQL Database Publishing Wizard. I changed the option 'script for server version' to SQL Server 2000 and left the other options at default. Should I have changed any of the other options?
Friday, March 9, 2012
Nullifying Measure not related to the displayed dimension, yet displaying Grand Totals
Hello,
I have 2 measure groups; say X and Y. X is related to the dimensions products and customers, while Y is related to Products only. I needed to create a view combining measures from X and Y. Now if I drag a measure from Y in front of the Customers dimension members the total for that measure is displayed in front of every Customer there. What I really need is to set the measures from group Y to Null when displayed in front of individual customers, and display their total value only on the Customers.All level and for 'Grand Totals'. I tried created a calculated member over that measure to act as a filter by using IIF function to check if customers.currentmember.level.ordinal > 0 to set the calculated measure to Null, else display the underlying value. Things work fine now in the BIDS Browser, but when I try to create the same view in ProClarity the Grand Total is Null. Any Clues?
How about setting IgnoreUnrelatedDimensions to false for Measure Group Y?
http://msdn2.microsoft.com/en-us/library/ms365411.aspx
>>
SQL Server 2005 Books Online
Configuring Measure Group Properties
Measures groups have properties that enable you to define how measure groups function.
...
IgnoreUnrelatedDimensions
Determines whether unrelated dimensions are forced to their top level when members of dimensions that are unrelated to the measure group are included in a query. Default setting is True.
>>