以自定义日期格式模式g和ge.mm.dd呈现

Contents
[ ]

下面的示例代码将转换包含类似于g和ge.mm.dd的自定义格式模式的源Excel文件(5112361.xlsx)成为输出PDF(5112360.pdf)。

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
Workbook workbook = new Workbook(dataDir + "SourceFile.xlsx");
workbook.Save(dataDir + "CustomDateFormat_out.pdf");