2021年1月29日 星期五

[研究][ASP.NET][C#] Aspose.Cells 評估版限制、訂價、授權、程式使用授權檔

[研究][ASP.NET][C#] Aspose.Cells Licensing 於程式中授權套用

2021-01-29

評估版限制 (Evaluation Version Limitations)

https://docs.aspose.com/cells/net/licensing/#using-an-embedded-resource

1.Number of Opened Files (Aspose.Cells) When running your program, you can only open 100 Excel files using Aspose.Cells library. If your application exceeds this number, an exception will be thrown.

2.Config file settings (Aspose.Cells.GridWeb) You can’t re-specify the script path by adding the following lines of code into the configuration section (e.g in the web.config file). The acw_client is a folder that contains files and Aspose.Cells.GridWeb uses this folder to manage its internal configuration, it has scripts files, image files and other files to specify GridWeb’s behavior and set other operations. The config file is used to prevent the control from using the embedded client resources (images, scripts, etc.) which is useful in some cases / scenarios. Moreover, this configuration settings in the web.config file will only take effect with the LICENSED version of the control.

1.打開的文件數(Aspose.Cells)運行程序時,只能使用Aspose.Cells庫打開100個Excel文件。如果您的應用程序超出此數目,將引發異常。

2.配置文件設置(Aspose.Cells.GridWeb)您無法通過在配置部分(例如,在web.config文件中)添加以下代碼行來重新指定腳本路徑。acw_client是一個包含文件的文件夾,Aspose.Cells.GridWeb使用此文件夾來管理其內部配置,它具有腳本文件,圖像文件和其他文件來指定GridWeb的行為並設置其他操作。配置文件用於防止控件使用嵌入式客戶端資源(圖像,腳本等),這在某些情況/場景下很有用。此外,web.config文件中的此配置設置僅對控件的許可版本有效。

********************************************************************************

訂價、授權

https://purchase.aspose.com/pricing/cells/net

Clcik 圖片可看原始尺寸

********************************************************************************

付費拿到的授權檔案

SubscriptionExpiry 是到期的日期,只有一年,根據 Price 網頁資訊,使用權永久,但是更新是一年。

License type : Perpetua (永久)

Updates and hotfixes for one year : Yes

改 SubscriptionExpiry  可否延長期限,不知道,且非法。

********************************************************************************

授權套用方法

環境:Visual Studio 2019 + ASP.NET + WebForm + C#

Web.Config 中

<appSettings>
    <add key="AsposelicFolder" value="D:\WWW\Asposelic" />
</appSettings>

Default.aspx.cs

string asposelicFolder = ConfigurationManager.AppSettings["AsposelicFolder"];
Aspose.Cells.License license = new Aspose.Cells.License();

license.SetLicense(asposelicFolder + "/Aspose.Cells.lic");
...(略)
Aspose.Cells.Workbook workbook = new Aspose.Cells.Workbook(fs);
...(略)
document.Save(ms, Aspose.Cells.SaveFormat.Xlsx);


(完)

沒有留言:

張貼留言