Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[reporting services 2005] excel export doesn't honor numer..

 
   Database Forums (Home) -> Tools RSS
Next:  Transaction (Process ID 411) was deadlocked on th..  
Author Message
newsgroup.poster

External


Since: Nov 20, 2008
Posts: 4



(Msg. 1) Posted: Thu Nov 20, 2008 6:38 am
Post subject: [reporting services 2005] excel export doesn't honor numeric format
Archived from groups: microsoft>public>sqlserver>tools (more info?)

Hello,

I need some help with an issue displaying numeric amounts as numbers
in excel.

what I have in the report file:
- report dataset exposing decimal(20,5) fields
- report cells with Format=N Language=French

what I have in web and excel result:
- correct displayed format (thousands separator and 2 decimal
precision)

my issue:
in excel, the amount cells are displayed with a warning: 'Number
Stored as Text'

What is the correct setting for excel to understand my numeric amounts
as number (so I can make computations without applying formatting
manually after the export)?

Thanks

Gauthier Segay

 >> Stay informed about: [reporting services 2005] excel export doesn't honor numer.. 
Back to top
Login to vote
Andrew Karcher [SQL MVP]

External


Since: Nov 25, 2008
Posts: 2



(Msg. 2) Posted: Tue Nov 25, 2008 12:14 pm
Post subject: Re: [reporting services 2005] excel export doesn't honor numeric format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Gauthier,

How are you formatting the number? Based on your problem I suspect that you
are using the Format method in the expression for the value of the text box.
The issue is that method returns a string not a number, so Excel sees the
value as a string.

If you instead use the Format Code property for the textbox and enter your
formatting there, then it will accurately be represented in Excel as a
number. In this case the value of field is going to be a number so Excel
treats it accordingly.

Let me know if you need more info,
Andrew Karcher
SQL Server MVP

wrote in message

> Hello,
>
> I need some help with an issue displaying numeric amounts as numbers
> in excel.
>
> what I have in the report file:
> - report dataset exposing decimal(20,5) fields
> - report cells with Format=N Language=French
>
> what I have in web and excel result:
> - correct displayed format (thousands separator and 2 decimal
> precision)
>
> my issue:
> in excel, the amount cells are displayed with a warning: 'Number
> Stored as Text'
>
> What is the correct setting for excel to understand my numeric amounts
> as number (so I can make computations without applying formatting
> manually after the export)?
>
> Thanks
>
> Gauthier Segay

 >> Stay informed about: [reporting services 2005] excel export doesn't honor numer.. 
Back to top
Login to vote
newsgroup.poster

External


Since: Nov 20, 2008
Posts: 4



(Msg. 3) Posted: Wed Nov 26, 2008 2:46 am
Post subject: Re: excel export doesn't honor numeric format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello Andrew,

I don't currently use Format function in the expression for the text
box value.

Here is a screenshot of relevant settings:

http://img141.imageshack.us/img141/5095/amountcellformatdr4.png

the source data comes from a select statement over a decimal(20,5)
value.

What I found is that group sums occuring over the same column appears
as real numbers: if I ctrl-select such cells in excel, I can see in
the status bar the summed value, but that won't work if I select any
of the detail cell.

Thanks you for your valuable support

On Nov 25, 9:14 pm, "Andrew Karcher [SQL MVP]"
wrote:
> Gauthier,
>
> How are you formatting the number?  Based on your problem I suspect that you
> are using the Format method in the expression for the value of the text box.
> The issue is that method returns a string not a number, soExcelsees the
> value as a string.
>
> If you instead use the Format Code property for the textbox and enter your
> formatting there, then it will accurately be represented inExcelas a
> number.  In this case the value of field is going to be a number soExcel
> treats it accordingly.
>
> Let me know if you need more info,
> Andrew Karcher
> SQL Server MVP
>
> wrote in message
>
>
>
> > Hello,
>
> > I need some help with an issue displaying numeric amounts as numbers
> > inexcel.
>
> > what I have in thereportfile:
> > -reportdataset exposing decimal(20,5) fields
> > -reportcells with Format=N Language=French
>
> > what I have in web andexcelresult:
> > - correct displayed format (thousands separator and 2 decimal
> > precision)
>
> > my issue:
> > inexcel, the amount cells are displayed with a warning: 'Number
> > Stored as Text'
>
> > What is the correct setting forexcelto understand my numeric amounts
> > as number (so I can make computations without applying formatting
> > manually after the export)?
>
> > Thanks
>
> >GauthierSegay
>
>
 >> Stay informed about: [reporting services 2005] excel export doesn't honor numer.. 
Back to top
Login to vote
newsgroup.poster

External


Since: Nov 20, 2008
Posts: 4



(Msg. 4) Posted: Wed Nov 26, 2008 7:24 am
Post subject: Re: excel export doesn't honor numeric format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Just in case, I wrapped the expression with Sum() without any change

On Nov 26, 11:46 am, wrote:
> Hello Andrew,
>
> I don't currently use Format function in the expression for the text
> box value.
>
> Here is a screenshot of relevant settings:
>
> http://img141.imageshack.us/img141/5095/amountcellformatdr4.png
>
> the source data comes from a select statement over a decimal(20,5)
> value.
>
> What I found is that group sums occuring over the same column appears
> as real numbers: if I ctrl-select such cells in excel, I can see in
> the status bar the summed value, but that won't work if I select any
> of the detail cell.
>
> Thanks you for your valuable support
>
> On Nov 25, 9:14 pm, "Andrew Karcher [SQL MVP]"
> wrote:
>
> > Gauthier,
>
> > How are you formatting the number?  Based on your problem I suspect that you
> > are using the Format method in the expression for the value of the text box.
> > The issue is that method returns a string not a number, soExcelsees the
> > value as a string.
>
> > If you instead use the Format Code property for the textbox and enter your
> > formatting there, then it will accurately be represented inExcelas a
> > number.  In this case the value of field is going to be a number soExcel
> > treats it accordingly.
>
> > Let me know if you need more info,
> > Andrew Karcher
> > SQL Server MVP
>
> > wrote in message
>
> >
>
> > > Hello,
>
> > > I need some help with an issue displaying numeric amounts as numbers
> > > inexcel.
>
> > > what I have in thereportfile:
> > > -reportdataset exposing decimal(20,5) fields
> > > -reportcells with Format=N Language=French
>
> > > what I have in web andexcelresult:
> > > - correct displayed format (thousands separator and 2 decimal
> > > precision)
>
> > > my issue:
> > > inexcel, the amount cells are displayed with a warning: 'Number
> > > Stored as Text'
>
> > > What is the correct setting forexcelto understand my numeric amounts
> > > as number (so I can make computations without applying formatting
> > > manually after the export)?
>
> > > Thanks
>
> > >GauthierSegay
>
>
 >> Stay informed about: [reporting services 2005] excel export doesn't honor numer.. 
Back to top
Login to vote
Andrew Karcher [SQL MVP]

External


Since: Nov 25, 2008
Posts: 2



(Msg. 5) Posted: Wed Nov 26, 2008 1:41 pm
Post subject: Re: excel export doesn't honor numeric format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Gauthier,

I was able to reproduce. Much easier to see with the screenshot. Similar
problem to the one I described. The issue is the return data type from the
function is an Object not a number so Excel does not see the value as a
number.

I was able to get around this by wrapping the IIF function in a conversion
to a numeric format.

In my case, I used the decimal conversion function and Excel now saw the
value as a number

=CDec(IIF(Fields!TotalDue.Value < 5000,0,Fields!TotalDue.Value))

Hope that helps,
Andrew Karcher
SQL Server MVP

wrote in message

> Just in case, I wrapped the expression with Sum() without any change
>
> On Nov 26, 11:46 am, wrote:
>> Hello Andrew,
>>
>> I don't currently use Format function in the expression for the text
>> box value.
>>
>> Here is a screenshot of relevant settings:
>>
>> http://img141.imageshack.us/img141/5095/amountcellformatdr4.png
>>
>> the source data comes from a select statement over a decimal(20,5)
>> value.
>>
>> What I found is that group sums occuring over the same column appears
>> as real numbers: if I ctrl-select such cells in excel, I can see in
>> the status bar the summed value, but that won't work if I select any
>> of the detail cell.
>>
>> Thanks you for your valuable support
>>
>> On Nov 25, 9:14 pm, "Andrew Karcher [SQL MVP]"
>> wrote:
>>
>> > Gauthier,
>>
>> > How are you formatting the number? Based on your problem I suspect that
>> > you
>> > are using the Format method in the expression for the value of the text
>> > box.
>> > The issue is that method returns a string not a number, soExcelsees the
>> > value as a string.
>>
>> > If you instead use the Format Code property for the textbox and enter
>> > your
>> > formatting there, then it will accurately be represented inExcelas a
>> > number. In this case the value of field is going to be a number soExcel
>> > treats it accordingly.
>>
>> > Let me know if you need more info,
>> > Andrew Karcher
>> > SQL Server MVP
>>
>> > wrote in message
>>
>> >
>>
>> > > Hello,
>>
>> > > I need some help with an issue displaying numeric amounts as numbers
>> > > inexcel.
>>
>> > > what I have in thereportfile:
>> > > -reportdataset exposing decimal(20,5) fields
>> > > -reportcells with Format=N Language=French
>>
>> > > what I have in web andexcelresult:
>> > > - correct displayed format (thousands separator and 2 decimal
>> > > precision)
>>
>> > > my issue:
>> > > inexcel, the amount cells are displayed with a warning: 'Number
>> > > Stored as Text'
>>
>> > > What is the correct setting forexcelto understand my numeric amounts
>> > > as number (so I can make computations without applying formatting
>> > > manually after the export)?
>>
>> > > Thanks
>>
>> > >GauthierSegay
>>
>>
>
 >> Stay informed about: [reporting services 2005] excel export doesn't honor numer.. 
Back to top
Login to vote
newsgroup.poster

External


Since: Nov 20, 2008
Posts: 4



(Msg. 6) Posted: Thu Nov 27, 2008 2:15 am
Post subject: Re: excel export doesn't honor numeric format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Andrew,

The CDec function make it works with excel!

On Nov 26, 10:41 pm, "Andrew Karcher [SQL MVP]"
wrote:
> Gauthier,
>
> I was able to reproduce.  Much easier to see with the screenshot.  Similar
> problem to the one I described.  The issue is the return data type from the
> function is an Object not a number so Excel does not see the value as a
> number.
>
> I was able to get around this by wrapping the IIF function in a conversion
> to a numeric format.
>
> In my case, I used the decimal conversion function and Excel now saw the
> value as a number
>
> =CDec(IIF(Fields!TotalDue.Value < 5000,0,Fields!TotalDue.Value))
>
> Hope that helps,
> Andrew Karcher
> SQL Server MVP
>
> wrote in message
>
>
>
> > Just in case, I wrapped the expression with Sum() without any change
>
> > On Nov 26, 11:46 am, wrote:
> >> Hello Andrew,
>
> >> I don't currently use Format function in the expression for the text
> >> box value.
>
> >> Here is a screenshot of relevant settings:
>
> >>http://img141.imageshack.us/img141/5095/amountcellformatdr4.png
>
> >> the source data comes from a select statement over a decimal(20,5)
> >> value.
>
> >> What I found is that group sums occuring over the same column appears
> >> as real numbers: if I ctrl-select such cells in excel, I can see in
> >> the status bar the summed value, but that won't work if I select any
> >> of the detail cell.
>
> >> Thanks you for your valuable support
>
> >> On Nov 25, 9:14 pm, "Andrew Karcher [SQL MVP]"
> >> wrote:
>
> >> > Gauthier,
>
> >> > How are you formatting the number? Based on your problem I suspect that
> >> > you
> >> > are using the Format method in the expression for the value of the text
> >> > box.
> >> > The issue is that method returns a string not a number, soExcelsees the
> >> > value as a string.
>
> >> > If you instead use the Format Code property for the textbox and enter
> >> > your
> >> > formatting there, then it will accurately be represented inExcelas a
> >> > number. In this case the value of field is going to be a number soExcel
> >> > treats it accordingly.
>
> >> > Let me know if you need more info,
> >> > Andrew Karcher
> >> > SQL Server MVP
>
> >> > wrote in message
>
> >> >
>
> >> > > Hello,
>
> >> > > I need some help with an issue displaying numeric amounts as numbers
> >> > > inexcel.
>
> >> > > what I have in thereportfile:
> >> > > -reportdataset exposing decimal(20,5) fields
> >> > > -reportcells with Format=N Language=French
>
> >> > > what I have in web andexcelresult:
> >> > > - correct displayed format (thousands separator and 2 decimal
> >> > > precision)
>
> >> > > my issue:
> >> > > inexcel, the amount cells are displayed with a warning: 'Number
> >> > > Stored as Text'
>
> >> > > What is the correct setting forexcelto understand my numeric amounts
> >> > > as number (so I can make computations without applying formatting
> >> > > manually after the export)?
>
> >> > > Thanks
>
> >> > >GauthierSegay
>
>
 >> Stay informed about: [reporting services 2005] excel export doesn't honor numer.. 
Back to top
Login to vote
Display posts from previous:   
   Database Forums (Home) -> Tools All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]