We are converting XLSX and XLSM files to PDFs using the following code.
static public string ConvertExcel(string inputFilePath = "", string outputFilePath = "")
{
string results = "SUCCESS";
try
…...{ foreach (Shape shape in sheet.Shapes) { if (shape.MsoDrawingType...enabled shape.IsTextWrapped = true; // Adjust shape height dynamically...