Click here to Skip to main content
15,893,790 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am going to generate crystal report in which I need to display all information of application form in box format like the form we have bank account opening form.

For example it fetch the Customer Name from database and it is "MARK JOHANSON" then in the report it should show something like :

|M|A|R|K| |J|O|H|A|N|S|O|N

Can any one please advice how can I achieve this in crystal report.

Thanks in advance,

What I have tried:

I can't figure out how to achieve this with the control provided in the crystal report. we can provide spacing and border to text box but i need it for each character so it is not a way to generate this much textbox
Posted
Updated 30-Sep-16 2:45am
v2
Comments
Suvendu Shekhar Giri 30-Sep-16 7:40am    
In crystal report you can draw lines. So you can create a box. But to have the box around each character is something needs tricky logic. I don't know how to do it but I think Formula can help in this regard.
npdev13 30-Sep-16 7:43am    
yeah i know that draw line feature but for each character how to do is the problem.

Find a monospace font that has the boxes drawn around the letters already.
 
Share this answer
 
Comments
npdev13 11-Oct-16 0:59am    
Thanks Dave for answer. I found the such monospace font.
C#
Create one formula for each field which will iterate through whole string and add one |(Pie) at the start and end of each character in string.

Example : 

Local StringVar str := "";
Local NumberVar strLen := Length ({Customer.Customer Name}); //Your field name 

NumberVar i;
For i := 1 To strLen Do
(
   str := str +"|"+ {Customer.Customer Name}[i] +"|";
);
str

Hope this will help you..:)

-Bhavik
Skype : BDChaudhari90
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900