VBA Sertifikasını Dosyaya veya Akışa Aktar
Contents
[
Hide
]
Aspose.Cells for Python via .NET, VBA Dijital Sertifikasını dosya veya bellek akışı gibi akışlara dışa aktarmanıza olanak tanır. VBA dijital sertifikasının ham verilerine Workbook.vba_project.cert_raw_data özelliği ile erişebilirsiniz.
VBA Sertifikasını Dosyaya veya Akışa Dışa Aktar Python’da
Lütfen, VBA Sertifikasının ham verilerini bir dosyaya kaydeden aşağıdaki örnek kodu inceleyin. Bu kodu içeren örnek excel dosyasını buradaki bağlantıdan indirebilirsiniz.
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(".") | |
# Load your source excel file into workbook object | |
workbook = Workbook(dataDir + "sampleVBAProjectSigned.xlsm") | |
# Retrieve bytes data of Digital Certificate of VBA Project | |
certBytes = workbook.vba_project.cert_raw_data | |
# Save Certificate Data into FileStream | |
with open(dataDir + "Cert_out_", "wb") as f: | |
f.write(certBytes) |