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.

Fri Oct 02, 2020 1:35 pm

Hi guys,

I'm using the code below trying to draw dashed/dotted line but without success!
None of the options for LineStyle works!!!
Please, help!

Thanks,

ShapeObject line = paragraph.AppendShape(150, 0, ShapeType.Line);
line.LineStyle = ShapeLineStyle.Triple;
line.LineStyle = (ShapeLineStyle)LineDashing.Dot;

metodi.eterov
 
Posts: 1
Joined: Fri Oct 02, 2020 12:55 pm

Mon Oct 05, 2020 2:35 am

Hi,

Thanks for your inquiry and sorry for the late reply as weekend.
Sorry for that our Spire.Doc doesn't support setting dashed/dotted line style at present. We will consider adding it as a new feature into our upgrade list. Once it is achieved in the future or there is any update for you, I will inform you immediately.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Sun Dec 27, 2020 10:37 pm

The dashed/dotted line is not working as expected in safari browser. Please refer the attached image for the reference.

Is there any browser compatibility issue in Teechart? Please let me know how to fix this dashed line issue in all browsers.

Thanks

BrandonDam
 
Posts: 3
Joined: Fri Dec 04, 2020 8:29 pm
Location: Украина

Mon Dec 28, 2020 3:55 am

Hello,

Thanks for your inquiry and sorry for the late reply as weekend.

Your image was not attached successfully, please attach it again. And what kind of operation did you do when you encountered the dashed/dotted line issue? Please describe your operation in detail and provide us with your test code for further investigation.

For the Teechart issue, I am sorry that it is not our product so we cannot help you with it.

If you have any other questions about our products, please feel free to contact us.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Wed Dec 30, 2020 8:10 am

Hello,

Hope you are doing well.

How is the issue now? If it still exists, could you please describe your operation in detail and provide us with your test code for further investigation?

Thanks in advance.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Mon Apr 10, 2023 10:01 am

Nina.Tang wrote:Hi,

Thanks for your inquiry and sorry for the late reply as weekend.
Sorry for that our Spire.Doc doesn't support setting dashed/dotted line style at present. We will consider adding it as a new feature into our upgrade list. Once it is achieved in the future or there is any update for you, I will inform you immediately.

Sincerely,
Nina
E-iceblue support team


Hi metodi.eterov,

Thanks for your patience!
Glad to inform you that we just released Spire.Doc 11.4.0 which supports setting line types (dashed/dotted) in shape objects.
Please download the new version from the following links to test.
Website download link: https://www.e-iceblue.com/Download/download-word-for-net-now.html
Nuget download link: https://www.nuget.org/packages/Spire.Doc/11.4.0

Code: Select all
Document doc = new Document();
Section sec = doc.AddSection();
Paragraph para1 = sec.AddParagraph();
ShapeObject shape1 = para1.AppendShape(100, 100, ShapeType.Line);
shape1.FillColor = Color.Purple;
shape1.StrokeColor = Color.Black;
shape1.LineStyle=ShapeLineStyle.Single;
shape1.LineDashing = LineDashing.Dash;
doc.SaveToFile("InsertShapes.docx", Spire.Doc.FileFormat.Docx2013);


Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc