C++ kullanarak Özelleştirilmiş Tarih Formatı Geliş ve ge MM dd Render
Contents
[
Hide
]
Aspose.Cells artık g, ge.mm.dd gibi özel tarih format desenlerini işleyebilir. Referansınız için lütfen ekli kaynak excel dosyasını ve Aspose.Cells tarafından dönüştürülmüş PDF’yi kontrol edin.
Aşağıdaki örnek kod, kaynak excel dosyasını dönüştürürken Belirtilmemiş Tarih Desenlerini Görüntüle ve Özelleştirir ve çıktı PDF’sini oluşturur.
#include <iostream>
#include "Aspose.Cells.h"
using namespace Aspose::Cells;
int main()
{
Aspose::Cells::Startup();
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-C
// Source directory path
U16String srcDir(u"..\\Data\\01_SourceDirectory\\");
// Output directory path
U16String outDir(u"..\\Data\\02_OutputDirectory\\");
// Create workbook from an existing Excel file
U16String inputFilePath = srcDir + u"SourceFile.xlsx";
Workbook workbook(inputFilePath);
// Save the Excel file as PDF
workbook.Save(outDir + u"CustomDateFormat_out.pdf");
std::cout << "File saved successfully as PDF!" << std::endl;
Aspose::Cells::Cleanup();
}