【タイトル】
HOW TO: ASP.NET アプリケーションにて ActiveX プリントコントロールを使用してレポートを印刷する方法
【詳細/質問】
Visual Studio 2005 と Crystal Reports XI R2 を使用して作成した ASP.NET アプリケーションにて ActiveX プリントコントロールを使用してレポートを印刷する方法
【対象製品】
Crystal Reports XI R2
【解決策/回答】
ユーザーが ActiveX プリントコントロールをダウンロードして印刷を行う場合は、下記の XML を web.config ファイルに追加します。 下記記述内の "http://myserver/PrintControl.cab" の箇所には実際に使用されているアドレスを記述します。 尚、PrintControl.cab ファイルはデフォルトで下記ディレクトリにインストールされています。
C:\Program Files\Business Objects\Common\3.5\crystalreportviewers115\ActiveXControls
<configSections>
<sectionGroup name="businessObjects">
<sectionGroup name="crystalReports">
<section name="printControl" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" />
</sectionGroup>
</sectionGroup>
</configSections>
<businessObjects>
<crystalReports>
<printControl>
<add key="url" value="http://myserver/PrintControl.cab" />
</printControl>
</crystalReports>