Yes, that fixed it. Thank you. I have a different question about the excel to pdf conversion.
After converting excel to pdf, I need to insert a heading, but as you can see it on the attached image, it runs into the table: image.png (31.6 KB)
Here is my insertion code:
Aspose.Pdf.Document doc4 = new Aspose.Pdf.Document(outputPath);
var pg = doc4.Pages[1];
Heading title = new Heading(1);
title.Text = “Equipment Schedules”;
title.HorizontalAlignment = HorizontalAlignment.Center;
title.TextState.FontSize = 30;
title.Margin = new MarginInfo(0, 30, 0, 0);
pg.Paragraphs.Insert(0, title);
doc4.Save(outputPath);
doc4.Dispose();
As you can see, I am trying to set a bottom margin, but that doesn’t seem to help.
Examining pg variable in debugger, it does not have any paragraphs except for title, but a lot of things in the Contents collection.
Thank you