VBA Sertifikasını Dosyaya veya Akışa Aktar

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.

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)