SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Development Tools
 Reporting Services Development
 SSRS Decimal Place from parameter
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

micnie_2020
Posting Yak Master

Malaysia
226 Posts

Posted - 11/05/2012 :  21:51:03  Show Profile  Reply with Quote
Hi All,

I have a parameter selection n0, n2, n4, i tried to do as below bold section:
<Format>=Parameters!deci</Format>

But why it doesn't work?

Please advise.

Thank you


<Textbox Name="Price">
                                                                        <CanGrow>true</CanGrow>
                                                                        <KeepTogether>true</KeepTogether>
                                                                        <Paragraphs>
                                                                          <Paragraph>
                                                                            <TextRuns>
                                                                              <TextRun>
                                                                                <Value>=Fields!Price.Value</Value>
                                                                                <Style>
                                                                                  <FontFamily>Tahoma</FontFamily>
                                                                                  <FontSize>8pt</FontSize>
                                                                                  <FontWeight>Bold</FontWeight>
                                                                                  <Format>=Parameters!deci</Format>                                                                                  <Color>White</Color>
                                                                                </Style>
                                                                              </TextRun>
                                                                            </TextRuns>
                                                                            <Style>
                                                                              <TextAlign>Right</TextAlign>
                                                                            </Style>
                                                                          </Paragraph>
                                                                        </Paragraphs>
                                                                        <rd:DefaultName>Price</rd:DefaultName>
                                                                        <Style>
                                                                          <Border>
                                                                            <Color>LightGrey</Color>
                                                                            <Style>Solid</Style>
                                                                          </Border>
                                                                          <BackgroundColor>SlateGray</BackgroundColor>
                                                                          <PaddingLeft>2pt</PaddingLeft>
                                                                          <PaddingRight>2pt</PaddingRight>
                                                                          <PaddingTop>2pt</PaddingTop>
                                                                          <PaddingBottom>2pt</PaddingBottom>
                                                                        </Style>
                                                                      </Textbox>

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 11/05/2012 :  22:06:14  Show Profile  Reply with Quote
set the expression through format textbox in GUI rather than by editing the RDL

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

micnie_2020
Posting Yak Master

Malaysia
226 Posts

Posted - 11/05/2012 :  22:08:17  Show Profile  Reply with Quote
Hi Visakh,

I need to have the drop down box for user choose, how many decimal point they would like the report.

I tried this also:
<Format>=IIF(Parameters!deci="0D","N0",IIf(Parameters!deci="2D","N2", IIf(Parameters!deci="4D","N4")))</Format>

But not work.

Please advise.

Thank you.
Go to Top of Page

micnie_2020
Posting Yak Master

Malaysia
226 Posts

Posted - 11/05/2012 :  22:33:47  Show Profile  Reply with Quote
I manage to solved it, missing .value

Parameters!deci.Value

Thank you.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000