I have two issues that revolve around arcs as shown in the attached spreadsheet and using this code.
Workbook wb = new Workbook(@“c:\temp\Arc Test.xlsx”);
Worksheet ws = wb.Worksheets[0];
Shape arc = ws.Shapes[“Arc 1”];
PdfSaveOptions opts = new PdfSaveOptions();
opts.OnePagePerSheet = true;
wb.Save(@“c:\temp\ArcTest.pdf”, opts);
1. If the cap type of the line is set to round (as in the spreadsheet) and then save the spreadsheet as PDF, it still displays the arc with square ends.
2. I’m attempting to make shape adjustments to the arc. If I set the value to 108 as shown below, it sets the arc to be about a full semi circle. My issue is that I don’t understand what this value corresponds to. I would assume that a value of 180 should correspond to a full semi-circle (like they do in Excel). Can you please explain these to me?
arc.Geometry.ShapeAdjustValues[0].Value = 108