473,725 Members | 2,212 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CrystalReports, c# - The string is non-numeric problem

I use MS SQL EXPRESS DB
VS 2005, c#
Win Application

I have problem "The string is non-numeric"

with formula

CDbl({pr_DajPon udu;1.Kolicinsk iPopust})/100 * {@NajamProstora }

File KolicinskiPopus t is carChar(25) within MS SQLEXPRESS DB

I found description error and possible solution:
The string is non-numeric.
The argument to the ToNumber function must be a number stored as a
string
(for example, a customer number, an ID number, and so on). The string
may
be preceded by a minus sign and may contain leading and trailing
blanks. You
have used an argument that is non-numeric and therefore cannot be
converted to a number. Change the argument to numeric and recheck.

How I can reslove that?

Thanks
Dec 12 '07 #1
5 5523
Well, what is actually in this field? The report is seeing a
non-numeric value.

Are you sure that there are no non-numeric values being passed to this?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike" <ab******@yahoo .comwrote in message
news:b9******** *************** *********@4ax.c om...
>I use MS SQL EXPRESS DB
VS 2005, c#
Win Application

I have problem "The string is non-numeric"

with formula

CDbl({pr_DajPon udu;1.Kolicinsk iPopust})/100 * {@NajamProstora }

File KolicinskiPopus t is carChar(25) within MS SQLEXPRESS DB

I found description error and possible solution:
The string is non-numeric.
The argument to the ToNumber function must be a number stored as a
string
(for example, a customer number, an ID number, and so on). The string
may
be preceded by a minus sign and may contain leading and trailing
blanks. You
have used an argument that is non-numeric and therefore cannot be
converted to a number. Change the argument to numeric and recheck.

How I can reslove that?

Thanks

Dec 12 '07 #2
Within DB "pr_DajPonudu;1 .KolicinskiPopu st" is VChar(25) and
@NajamProstora is int

CDbl({pr_DajPon udu;1.Kolicinsk iPopust})/100 * {@NajamProstora }

Mirko

On Wed, 12 Dec 2007 11:14:59 -0500, "Nicholas Paldino [.NET/C# MVP]"
<mv*@spam.guard .caspershouse.c omwrote:
>CDbl({pr_DajPo nudu;1.Kolicins kiPopust})/100 * {@NajamProstora }
>>
File KolicinskiPopus t is carChar(25) within MS SQLEXPRESS DB
Dec 12 '07 #3
No, I meant, what are all the values for that field. If you don't have
a lexical representation of a number, you won't be able to convert it, and
get the error message you are getting.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike" <ab******@yahoo .comwrote in message
news:mi******** *************** *********@4ax.c om...
Within DB "pr_DajPonudu;1 .KolicinskiPopu st" is VChar(25) and
@NajamProstora is int

CDbl({pr_DajPon udu;1.Kolicinsk iPopust})/100 * {@NajamProstora }

Mirko

On Wed, 12 Dec 2007 11:14:59 -0500, "Nicholas Paldino [.NET/C# MVP]"
<mv*@spam.guard .caspershouse.c omwrote:
>>CDbl({pr_DajP onudu;1.Kolicin skiPopust})/100 * {@NajamProstora }
>>>
File KolicinskiPopus t is carChar(25) within MS SQLEXPRESS DB

Dec 12 '07 #4
All values are numbers from 0-100
On Wed, 12 Dec 2007 14:09:46 -0500, "Nicholas Paldino [.NET/C# MVP]"
<mv*@spam.guard .caspershouse.c omwrote:
No, I meant, what are all the values for that field. If you don't have
a lexical representation of a number, you won't be able to convert it, and
get the error message you are getting.
Dec 13 '07 #5
That's the thing, they aren't, or crystal reports doesn't see it that
way. Either that, or the binding is incorrect.

I've also seen bindings on crystal reports (in earlier versions) just
get messed up, and map the wrong fields to the wrong bindings. If you
verify the data for the report (or outright change the data source and then
change it back) do you still get this?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike" <ab******@yahoo .comwrote in message
news:or******** *************** *********@4ax.c om...
All values are numbers from 0-100
On Wed, 12 Dec 2007 14:09:46 -0500, "Nicholas Paldino [.NET/C# MVP]"
<mv*@spam.guard .caspershouse.c omwrote:
> No, I meant, what are all the values for that field. If you don't
have
a lexical representation of a number, you won't be able to convert it, and
get the error message you are getting.
Dec 14 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2785
by: Stijn Lambert | last post by:
Hi all, I am having some problems with Crystal Reports 9 for Visual Studio .NET ... I have a multithreaded application that prints reports in several threads (based upon incoming requests on a queue ...), 1 report per thread. When multiple threads are launched, I get the following error: CrystalDecisions.CrystalReports.Engine.OutOfLicenseException This is due to limitations in the Crystaldescisions object-model. (Thats's
0
2465
by: cw | last post by:
Hi all, I'm trying to generate some crystal report using ASP.NET. However, i stucked on the avove error.. below is the code for web form 1: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here Dim tbCurrent As CrystalDecisions.CrystalReports.Engine.Table
0
425
by: Alixx Skevington | last post by:
OK, I am confused here, so I hope that somebody out there can help me out. I am trying to run a report allows me to choose the report and then change the logon info for it. Noiw before you say anything; I can actually run the exact same code to do exactly the same things in a windows form; but it won't work if I try to pass it to a Crystal Web Viewer. OK this is my code for the Order.aspx page
5
1371
by: Åženol Akbulak | last post by:
Hi, I want to use Crystal Reports in my asp.net application. I get this error: ### CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed. ### I have read this solution and then I applied solution: http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B319264 But I still get logon exception.
4
11805
by: javatopia | last post by:
Hello, I am trying to show a Crystal Reports 10 Enterprise report in an ASP.NET page (C#). I can run the report via the admin console just fine. When I try to show the report, after setting up its parameters, I get: "Value does not fall within the expected range." How are people interacting with the Crystal Report viewer to set the parameters on a report? I haven't found any useful documentation at
3
1994
by: Lorenc | last post by:
Is anybody experiencing the following error when trying to export a crystal report to a pdf? This error happens randomly. ------------------------------------------------------------------------ Error occurred. Exception of type System.Web.HttpUnhandledException was thrown. Cannot find the assembly Cybex.CRMBL, Version=2.5.4.0, Culture=neutral, PublicKeyToken=null. mscorlib System.Reflection.Assembly GetAssembly()
0
3165
by: Dipen | last post by:
Hello All, I am using crystal report in my application. Everything is right but i end up with the following error. Failed to open a rowset. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
0
1082
by: Jon Vaughan | last post by:
I have a crystalreports control that im using to display reports in using client side data. On some of the reports I get a very ambigious error , which is just a path to the report guide that has caused the error. Obviously this is of very limited use as I need to find out more of whats happening. I have tried to add a catch to : CrystalDecisions.CrystalReports.Engine.InternalException
3
1293
by: nmsreddi | last post by:
Hello all, i hav a web application in that there are as many as reports done in default crystal reports with visual studio1.1 .now when i uploaded my application in web i am able to get all my forms and other controls but when i tried to access the reports it is giving 403 error
0
1310
by: Matthew Butler | last post by:
I am creating a datable applying it to the reportdocument but when i export it there is only one page? can someone advise as to what i am missing. my code is as follows: Dim CrystalDS As New DataTable CrystalDS.Columns.Add("DEBTOR", System.Type.GetType("System.String"))
0
8888
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8752
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9176
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8097
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2635
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.