gおよびge mm ddのカスタム日付形式パターンをレンダリングする
Contents
[
Hide
]
Aspose.Cells for Python via .NETは、g、ge.mm.ddなどのカスタム日付フォーマットパターンをレンダリングできるようになりました。参考のために添付のsource excelファイルとAspose.Cellsで変換されたPDFをご確認ください。
以下のサンプルコードは、gやge.mm.ddなどのカスタム形式パターンを含むsource excel fileを変換し、output PDFに変換します。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aspose.cells import Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# The path to the documents directory. | |
dataDir = RunExamples.GetDataDir(".") | |
workbook = Workbook(dataDir + "SourceFile.xlsx") | |
workbook.save(dataDir + "CustomDateFormat_out.pdf") |