Slide shape vertical line

with the upgrade to the latest version of the aspose dlls our ability to create a vertical line like the example below no longer works...

slide.Shapes.AddLine(

new Point(Column1, row1), new Point(Column1, row2))

can you tell me how I can create a dashed vertical line to a slide?

thanks

Hi,


Thanks for inquiring Aspose.Slides. I have observed the sample line of code shared by you and have not been able to completely understand the requirement shared by you. Can you please share in the form of sample presentation, sample image and working sample code that what you are trying to achieve using Aspose.Slides. I will investigate on my end to help you further.

Many Thanks,

I have attached a picture of the slide with the vertical lines .

the vertical dashed lines between the months creates a column like effect.

I am trying to re-create the dashed vertical lines.

here is the code I am trying to duplicate using the new aspose dlls...

// Add slide formatting
Aspose.Slides.Line dashLine = slide.Shapes.AddLine(new Point(startTlColumn, topMargin), new Point(startTlColumn, rptHeight));
dashLine.LineFormat.DashStyle = LineDashStyle.LongDash;

Thank You Mr. Fayyaz

there are lines between all the months. not sure why the picture doesn’t display the line between November and December but there is one there also, just not on the picture.

I have looked at using

IAutoShape dashLine = slide.Shapes.AddAutoShape(ShapeType.Line,...

but that creates a horizontal line, need vertical

Hi,

I suggest you to please try using following sample code on your end. I hope this will be helpful. Please share if I may help you further in this regard.

public static void testLine()
{
//Instantiate PresentationEx class that represents the PPTX file
using (Presentation pres = new Presentation())
{
//Get the first slide
ISlide sld = pres.Slides[0];

//Add an autoshape of type line
IAutoShape ashp=sld.Shapes.AddAutoShape(ShapeType.Line, 50, 150, 300, 0);

ashp.Rotation = 90;
//Write the PPTX to Disk
pres.Save(“D:\Aspose Data\LineShape1.pptx”, SaveFormat.Pptx);
}
}

Many Thanks,