Failed to open the Default printer is not set

Active ReportsのReportStartイベントで以下のエラーが発生

Failed to open the Default printer is not set. printer, System error number: 1801

どうやらActive Reportsの仮想プリンタが正常に作成できていないのが原因の模様


ReportStartイベントに以下の1行を追加するとエラーが発生しなくなった

Me.Document.Printer.PrinterName = String.Empty


なお、Windows Server 2008では上記の対応をしなくても問題なかったが
Windows XPだとこのエラーが発生した (OS、またはプリンタが原因?)



動作確認環境:Visual Stadio 2008,Active Reports For .NET 6.0 J Pro