作成日: 2014/10/24 最終更新日: 2014/10/24
文書種別
技術情報
詳細
ReportViewer for ASP.NET Web Formsで、C1ReportクラスやC1PrintDocumentクラスから直接インスタンスを作成した場合、オブジェクトにライセンスが組み込まれません。
そのため、実行時に「このダイアログは正規の製品版を使用してアプリケーションをリビルドすることで表示されなくなります。」と記載されたトライアル版であることを示すダイアログが表示されます。
◎サンプル (VB)
◎サンプル (C#)
正しくライセンスを組み込むには、C1ReportViewerのCreateC1Report(CreateC1PrintDocument)メソッドから、C1Report(C1PrintDocument)のインスタンスを生成する必要があります。
◎サンプル (VB)
◎サンプル (C#)
また、licenses.licxファイルに下記内容が記載されている必要があります
◎サンプル (licenses.licx)
そのため、実行時に「このダイアログは正規の製品版を使用してアプリケーションをリビルドすることで表示されなくなります。」と記載されたトライアル版であることを示すダイアログが表示されます。
◎サンプル (VB)
' ライセンスが組み込まれない
Dim report As New C1.C1Report.C1Report()
Dim doc As New C1PrintDocument()
Dim report As New C1.C1Report.C1Report()
Dim doc As New C1PrintDocument()
◎サンプル (C#)
// ライセンスが組み込まれない
C1Report report = new C1Report();
C1PrintDocument doc = new C1PrintDocument();
C1Report report = new C1Report();
C1PrintDocument doc = new C1PrintDocument();
正しくライセンスを組み込むには、C1ReportViewerのCreateC1Report(CreateC1PrintDocument)メソッドから、C1Report(C1PrintDocument)のインスタンスを生成する必要があります。
◎サンプル (VB)
' ライセンスが組み込まれる
Dim report As C1Report = C1ReportViewer.CreateC1Report()
Dim doc As C1PrintDocument = C1ReportViewer.CreateC1PrintDocument()
Dim report As C1Report = C1ReportViewer.CreateC1Report()
Dim doc As C1PrintDocument = C1ReportViewer.CreateC1PrintDocument()
◎サンプル (C#)
// ライセンスが組み込まれる
C1Report report = C1ReportViewer.CreateC1Report();
C1PrintDocument doc = C1ReportViewer.CreateC1PrintDocument();
C1Report report = C1ReportViewer.CreateC1Report();
C1PrintDocument doc = C1ReportViewer.CreateC1PrintDocument();
また、licenses.licxファイルに下記内容が記載されている必要があります
◎サンプル (licenses.licx)
C1.Web.Wijmo.Controls.C1ReportViewer.C1ReportViewer, C1.Web.Wijmo.Controls.4
関連情報
旧文書番号
81023