Aspose::Cells::Startup(); //Source directory path U16String dirPath = u"..\\Data\\LoadingSavingForMetadata\\"; //Output directory path U16String outPath = u"..\\Data\\Output\\"; //Paths of source and output excel files U16String samplePath = dirPath + u"sample-metadata-properties.xlsx"; U16String outputPath = outPath + u"output-metadata-properties.xlsx"; //Load the sample excel file Workbook wb(samplePath); //Modify built-in title and subject properties U16String strTitle = u"Aspose.Cells New Title"; U16String strSubject = u"Aspose.Cells New Subject"; wb.GetBuiltInDocumentProperties().SetTitle(strTitle); wb.GetBuiltInDocumentProperties().SetSubject(strSubject); //Save the output excel file wb.Save(outputPath); Aspose::Cells::Cleanup();