Text Component Expression invalid (2014)

Stimulsoft Reports.NET discussion
Post Reply
ChrDressler
Posts: 68
Joined: Tue Nov 09, 2010 2:05 pm
Location: Dresden

Text Component Expression invalid (2014)

Post by ChrDressler »

Hi,

I have a Text-Component, bound on an DataTable with this expression {Print1.text}. This works fine in V2013.3

In V 2014.1, i receive this Error:
The error of compilation
The error of compilation is found in the 'RechKass' report:
'Reports.RechKass.Print1DataSource' nor definition for 'text', nor Extension method... (missing Using or Assembly...).

If I change the expression to {Print1.text_} (added underline!), it works :?

Ath the moment, I try to "convert" this expressions an runtime. But, ist there a better solution?

Christoph
Foxpro and behind
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Text Component Expression invalid (2014)

Post by Alex K. »

Hello

Please try to add this Text component in new version again and let us know about the result.

Thank you.
ChrDressler
Posts: 68
Joined: Tue Nov 09, 2010 2:05 pm
Location: Dresden

Re: Text Component Expression invalid (2014)

Post by ChrDressler »

unfortunately, this doesn't help. Always the same error :-(
( That would be no solution, because we have some customized report, wich we can't simpy replace )

Christoph
Foxpro and behind
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Text Component Expression invalid (2014)

Post by HighAley »

Hello.

text is a reserved word and could not be used as column name. So our report engine adds underline symbol to avoid errors.
Please, use the {Print1.text_} or rename the column.

Thank you.
ChrDressler
Posts: 68
Joined: Tue Nov 09, 2010 2:05 pm
Location: Dresden

Re: Text Component Expression invalid (2014)

Post by ChrDressler »

Ok, I add the underline (Columns in DataTables) an runtime. It's not elegant, but works.
Are there another "reserved words"?

Christoph
Foxpro and behind
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Text Component Expression invalid (2014)

Post by HighAley »

Hello.

Here is a full list of the reserved words:

Code: Select all

abstract
addhandler
addressof
alias
and
andalso
andif
ansi
as
assembly
auto
base
beginepilogue
binary
bool
boolean
break
byref
byte
byval
call
case
catch
cbool
cbyte
cchar
cchr
cdate
cdbl
cdec
char
checked
chr
chrw
cint
class
clng
cobj
compare
const
continue
convert
cshort
csng
cstr
ctype
date
decimal
declare
default
delegate
dim
do
double
each
else
elseif
end
endif
endprologue
enum
erase
error
event
exdouble
exfloat
exit
explicit
extern
externalsource
finally
fixed
float
for
foreach
friend
function
get
gettype
gosub
goto
handles
if
implements
implicit
imports
in
inherits
int
integer
interface
internal
is
let
lib
like
lock
long
loop
me
mod
module
mustinherit
mustoverride
myclass
mythis
namespace
namespace
new
next
not
nothing
notinheritable
notoverridable
null
object
off
on
operator
option
optional
or
orelse
out
overloads
overridable
override
overrides
paramarray
preserve
private
property
protected
public
raiseevent
readonly
redim
ref
region
rem
removehandler
resume
return
sbyte
sealed
select
set
shadows
shared
short
single
sizeof
static
step
stop
strict
string
struct
structure
sub
switch
synclock
text
then
this
throw
to
try
try
typeof
uint
ulong
unchecked
unicode
unsafe
until
ushort
using
variant
virtual
void
when
while
with
withevents
writeonly
xor
FALSE
TRUE
Thank you.
Post Reply