문제

Good Morning.

I am trying to use Fast Reports v1.4.42

Everything was going well up until I attempted to concatenate a string.

I am trying to create a string that looks somewhat like the following.

1 - [Name Here]

2 - [Another Name]

3 - [Test Name]

I attempted to do this using the following code.

CType(Report.GetColumnValue("Table1.Code"), String) & " [" & CType(Report.GetColumnValue("Table1.Name"), String) & "]"

Unfortunatly as I already know using [Square Brackets] means that FastReports looks for variables with the name inside the brackets.

As such the fast report is looking for (using the example above), variables called Name, Here, Another, Name etc...

Is there a way of placeing [Square Brackets] into a fast report string without it falling over.

If it makes any difference I am using fast reports plugged into a VB.NET project.

도움이 되었습니까?

해결책

The answer here is:

Remove the value from the Brackets property of the TextBox/Cell

다른 팁

for further information, u can check documentation, idk about .net but delphi documentation section is 2.5 of the user manual, where u can customize the delimiters using “ExpressionDelimiters” property

This is very simple for FastReport.Net this is working:

["[YourTextInSquareBrackets]"]

I have change bracket property from [,] to empty, it works! Please refer: a link

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top