Licensing

评估版限制

Aspose.Cells for C++ 的免费评估版可以从 Aspose 网站的下载部分下载:https://downloads.aspose.com/cells/cpp.

使用文件或流对象应用许可证

可以从文件或流对象加载许可证。 Aspose.Cells for C++ 将尝试在以下位置查找许可证:

  1. 显式路径。
  2. 包含 Aspose.Cells.dll 的文件夹。
  3. 包含名为 Aspose.Cells.dll 的程序集的文件夹。
  4. 包含条目程序集(您的 .exe)的文件夹。
  5. 程序集中名为 Aspose.Cells.dll 的嵌入资源。

设置许可证的最简单方法是将许可证文件放在与 Aspose.Cells.dll 文件相同的文件夹中,并指定文件名(不带路径),如下例所示。

从文件加载许可证

应用许可证的最简单方法是将许可证文件放在与 Aspose.Cells.dll 文件相同的文件夹中,并仅指定文件名而不指定路径。

C++

  License license;
  license.SetLicense(u"Aspose.Cells.lic");

从流对象加载许可证

以下示例显示如何从流加载许可证。

C++

  License license;

  //You need to write your own code to read the contents of the license file into this variable.
  Vector<uint8_t> myStream{0}; //"Aspose.Cells.lic"

  license.SetLicense(myStream);