次のコードを使用して.NET経由で印刷しようとしています。
http://support.microsoft.com/kb/322091
OpenFileDialog ofd = new OpenFileDialog();
if( DialogResult.OK == ofd.ShowDialog(this) )
{
// Allow the user to select a printer.
PrintDialog pd = new PrintDialog();
pd.PrinterSettings = new PrinterSettings();
if( DialogResult.OK == pd.ShowDialog(this) )
{
// Print the file to the printer.
RawPrinterHelper.SendFileToPrinter(pd.PrinterSettings.PrinterName, ofd.FileName);
}
}
プリンタダイアログウィンドウが開き、印刷ジョブがキューにありますが、何も印刷されません...それ以外の場合は印刷できます。