ratty
ratty

Reputation: 13434

how set the record number field in Integer format in Crystal Report using C#?

I am using record number from formula field for SerialNO.Recordenumber shows the values in decimal format like 1.00,2.00 etc, but I like show that in 1,2 etc.

How can I do this?

Upvotes: 0

Views: 2557

Answers (2)

Kangkan
Kangkan

Reputation: 15571

Why not use the field formatter? Crystal reports field formatter (right click the field and from the context menu, select format) and set how the number should be shown.

Upvotes: 1

mechanical_meat
mechanical_meat

Reputation: 169274

Since it's not really a number, but more of an index you can treat it as text:

ToText({SerialNO.Recordnumber},0) 

Upvotes: 0

Related Questions