Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Thu May 02, 2024 9:39 am

Hi Team ,

I have attached screenshot for your reference ,that is my requirement.


1. creating swimlane
2. Inside swimlane , I have to add rectangle boxes with the text [total number of rectangle boxes would be changed based on the condition ]
3.Swimlane should be dynamic as we add multiple boxes based on the condition


Thanks in advance

pr20080798
 
Posts: 159
Joined: Wed Jan 20, 2021 1:15 pm

Thu May 02, 2024 10:00 am

Hello,

Thanks for your message.
Sorry, our product does not currently support the creation of swimlane. however, we will consider adding this requirement to the list of new features, can you provide this sample file for our development reference? Thank you in advance for your assistance.

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 460
Joined: Mon Nov 07, 2022 8:10 am

Tue May 07, 2024 5:10 am

Thank you Doris for your response.


Instead of swimlane , we can create a rectangle box .Please let me how can i write code for this requirement.



Thank you

pr20080798
 
Posts: 159
Joined: Wed Jan 20, 2021 1:15 pm

Tue May 07, 2024 8:15 am

Hi,

Thank you for your reply.
Please refer to below tutorial to create rectangle in Word document:
Insert Shape and shape group in Word Document

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 460
Joined: Mon Nov 07, 2022 8:10 am

Wed May 08, 2024 6:34 am

Thank you for reply.

How to add connector between every row's last rectangle with first rectangle of each row .

My code : Section section = doc.addSection();
Paragraph paragraph = section.addParagraph();
float horizontalPosition = 5;
float verticalPosition = 90f;
for(int i=0;i<40;i++) {
if(i % 5 == 0) {
paragraph = section.addParagraph();
verticalPosition += 60f;
horizontalPosition = 5;
}
ShapeObject shape = paragraph.appendShape(50, 50, ShapeType.Rectangle);
shape.setHorizontalPosition(horizontalPosition);
shape.setVerticalPosition(verticalPosition);

horizontalPosition += 80;
//horizontalPosition += 20;

ShapeObject shape2 = paragraph.appendShape(30, 5, ShapeType.Arrow);
shape2.setHorizontalPosition(horizontalPosition-30);
shape2.setVerticalPosition(verticalPosition+20);

pr20080798
 
Posts: 159
Joined: Wed Jan 20, 2021 1:15 pm

Wed May 08, 2024 9:56 am

Hi,

Thanks for your response.
Sorry, we don't support connector arrows at the moment. I have logged your request into our issue tracking system under the number SPIREDOC-10514. Our developers will investigate if this feature can be implemented and will let you know as soon as it is.

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 460
Joined: Mon Nov 07, 2022 8:10 am

Return to Spire.Doc