We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Where to find line shape arrow objects in object model

Hi,

I’m converting word to excel with aspose and now I have the problem, that all connector shapes loose their arrow options. They are rendered as normal lines without arrow style.

I’m not able to find attributes about arrow … in object model.

Where can I find these options and how to convert to word?

I attached dialog from word/excel (same options in both programms).

Hi

Thanks for your request. I think, ArrowType is what you are looking for:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/aspose.words.drawing.arrowtype.html

For example to create an arrow in MS Word document, you can use the following code:

Document doc = new Document();

Shape lineShape = new Shape(doc, ShapeType.Line);

lineShape.Width = 100;

lineShape.Stroke.EndArrowType = ArrowType.Arrow;

doc.FirstSection.Body.FirstParagraph.AppendChild(lineShape);

doc.Save(@"Test001\out.doc");

Hope this helps.

Best regards,

Thanks a lot.

Do you now, where I can find these options in Aspose.Cells object model?
I’m converting from excel to word and I have to set correct arrow styles …

Hi

Thanks for your request. I suppose you can use this property:

http://www.aspose.com/documentation/.net-components/aspose.cells-for-.net/aspose.cells.drawing.lineshape.beginarrowheadstyle.html

But you would better ask in Aspose.Cells forum. My colleagues from Aspose.Cells team will answer you shortly.

Best regards,