Posted 18 September 2021, 3:51 pm EST
Dear Sir/Mam,
We would like to draw two diagonal lines and text between then as shown in image…
We tried to do using FlexReport Field in many way but couldn’t…
Please help us …
Regards
Sanjeeb
Forums Home / ComponentOne / WinForms Edition
Posted by: sanjeeb.srjm on 18 September 2021, 3:51 pm EST
Posted 18 September 2021, 3:51 pm EST
Dear Sir/Mam,
We would like to draw two diagonal lines and text between then as shown in image…
We tried to do using FlexReport Field in many way but couldn’t…
Please help us …
Regards
Sanjeeb
Posted 19 September 2021, 3:40 am EST
Dear Sir/Mam,
Still waiting for your kind support…
Regards-
Sanjeeb
Posted 19 September 2021, 3:05 pm EST
Hi Sanjeeb,
There are two ways you can achieve this.
First, you can create an image with the lines. Add that image to the report, add a TextField over the image field, then set the TextAngle property of the Text Field to rotate the text.
Second, you can create three text fields, two fields with multiple underscore chars to mimic a line, and then one field with the text. Then you can set the text angle of the three fields to show them as diagonal.
Please refer to the sample report attached.
Regards
Avnish
Posted 19 September 2021, 3:49 pm EST
Dear Avnish Sir,
Thankx for reply but I can’t understand designers.
I humbly request you to suggest the solution through pure runtime C# code only…
Regards-
Sanjeeb
Posted 20 September 2021, 8:12 pm EST
Hi Sanjeeb,
Please refer to the sample attached. You can modify it according to your requirements.
Regards
Avnish
FlexReport_Diagonal.zip
Posted 20 September 2021, 9:15 pm EST
Dear Avnish Sir,
Thankx a lot for such a great support.
Thank you very much for solving my problem.
Regards-
Sanjeeb