RDLC / Report Viewer to Excel

  • Thread starter Thread starter checkraiser
  • Start date Start date
C

checkraiser

I have an RDLC file report where on a few data elements, I'm running a format
function on the data in order to get commas separators in the number. The
textbox property for the data elements value is

=Format(CLng(Fields!MyField.Value),"###,###,###,##0")

The data elements in the xsd that the report uses are defined as either
decimal or integer. Essentially, we just want to get a whole number here
with no decimal places that has a readable comma delimiter every 3 positions.


The format works well for the web report. But when the report is generated
in Excel, I get a bunch of green corner triangles with an error that says,
"The number in this cell is formatted as text or preceeded by an apostrophe."
The values are all treated as character data in the spreadsheet and not as
numeric values that calculations can be performed on, making it frustrating
if you want to do some simple math in the spreadsheet.

Is there a way to format this data so that it will be recognized as a number
in excel and still have the commas in the number for readability?
 
Hi

Sorry for the late reply. To solve this problem we can set
=Fields!MyField.Value as the Value and set ="###,###,###,##0" as the
Format. You can find the "Format" under the "Appearance" of the properties
window.

Please have a try and feel free to let met know if you need further
assistance.

Regards,
Allen Chen
Microsoft Online Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/default.aspx?target=assistance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



--------------------
| Thread-Topic: RDLC / Report Viewer to Excel
| thread-index: AckZEOBPSXEsgy9MR0+LyKFzJpzZTg==
| X-WBNR-Posting-Host: 207.46.193.207
| From: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ==?=
<[email protected]>
| Subject: RDLC / Report Viewer to Excel
| Date: Wed, 17 Sep 2008 15:01:03 -0700
| Lines: 20
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.3119
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Path: TK2MSFTNGHUB02.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet:76268
| NNTP-Posting-Host: tk2msftibfm01.phx.gbl 10.40.244.149
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I have an RDLC file report where on a few data elements, I'm running a
format
| function on the data in order to get commas separators in the number.
The
| textbox property for the data elements value is
|
| =Format(CLng(Fields!MyField.Value),"###,###,###,##0")
|
| The data elements in the xsd that the report uses are defined as either
| decimal or integer. Essentially, we just want to get a whole number here
| with no decimal places that has a readable comma delimiter every 3
positions.
|
|
| The format works well for the web report. But when the report is
generated
| in Excel, I get a bunch of green corner triangles with an error that
says,
| "The number in this cell is formatted as text or preceeded by an
apostrophe."
| The values are all treated as character data in the spreadsheet and not
as
| numeric values that calculations can be performed on, making it
frustrating
| if you want to do some simple math in the spreadsheet.
|
| Is there a way to format this data so that it will be recognized as a
number
| in excel and still have the commas in the number for readability?
|
 
Hi,

Can my suggestion work?

Regards,
Allen Chen
Microsoft Online Community Support
--------------------
| Thread-Topic: RDLC / Report Viewer to Excel
| thread-index: AckZEOBPSXEsgy9MR0+LyKFzJpzZTg==
| X-WBNR-Posting-Host: 207.46.193.207
| From: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ==?=
<[email protected]>
| Subject: RDLC / Report Viewer to Excel
| Date: Wed, 17 Sep 2008 15:01:03 -0700
| Lines: 20
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.3119
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Path: TK2MSFTNGHUB02.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet:76268
| NNTP-Posting-Host: tk2msftibfm01.phx.gbl 10.40.244.149
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I have an RDLC file report where on a few data elements, I'm running a
format
| function on the data in order to get commas separators in the number.
The
| textbox property for the data elements value is
|
| =Format(CLng(Fields!MyField.Value),"###,###,###,##0")
|
| The data elements in the xsd that the report uses are defined as either
| decimal or integer. Essentially, we just want to get a whole number here
| with no decimal places that has a readable comma delimiter every 3
positions.
|
|
| The format works well for the web report. But when the report is
generated
| in Excel, I get a bunch of green corner triangles with an error that
says,
| "The number in this cell is formatted as text or preceeded by an
apostrophe."
| The values are all treated as character data in the spreadsheet and not
as
| numeric values that calculations can be performed on, making it
frustrating
| if you want to do some simple math in the spreadsheet.
|
| Is there a way to format this data so that it will be recognized as a
number
| in excel and still have the commas in the number for readability?
|
 
Back
Top