C++ ile Excel de Uyumluluk Denetleyicisini Devre Dışı Bırak

C++ ile Excel Çalışma Sayfalarında Uyumluluk Denetleyicisini Devre Dışı Bırakma

Microsoft Excel’de Uyumluluk Denetleyicisini Nasıl Devre Dışı Bırakılır

Microsoft Excel’de Uyumluluk Denetçisini devre dışı bırakmak için (örneğin Microsoft Excel 2007/2010):

  • (Excel 2007) Office düğmesine tıklayın, Hazırla‘yı tıklayın, ardından Uyumluluk Denetleyicisini Çalıştır‘ı tıklayın ve Bu çalışma kitabını kaydederken uyumluluğu kontrol et seçeneğini temizleyin.
  • (Excel 2010) Dosya sekmesine tıklayın, sonra Bilgi‘ye tıklayın, Sorunları kontrol et‘i tıklayın, Uyumluluğu Kontrol Et‘i tıklayın ve son olarak Bu çalışbook’u kaydederken uyumluluğu kontrol et seçeneğini temizleyin.

Aspose.Cells API’ları kullanarak Uyumluluk Denetleyicisini Nasıl Devre Dışı Bırakılır

Microsoft Excel’in Uyumluluk Denetleyicisini devre dışı bırakmak için False olarak Workbook.GetCheckCompatibility() özelliğini ayarlayın.

Kod Örnekleri

Aşağıdaki kod örnekleri, Aspose.Cells for C++ ile Uyumluluk Denetleyicisini nasıl devre dışı bırakacağınızı gösterir.

#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

    // Path to the documents directory.
    U16String srcDir(u"..\\Data\\01_SourceDirectory\\");

    // Open a template file
    U16String templateFilePath = srcDir + u"sample.xlsx";
    Workbook workbook(templateFilePath);

    // Disable the compatibility checker
    workbook.GetSettings().SetCheckCompatibility(false);

    // Path to save the output file
    U16String outputFilePath = srcDir + u"Output_BK_CompCheck.out.xlsx";

    // Saving the Excel file
    workbook.Save(outputFilePath);

    std::cout << "Excel file saved successfully!" << std::endl;

    Aspose::Cells::Cleanup();
    return 0;
}