0
我試圖通過與下面的代碼.NET打印....打印文件和.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);
}
}
打印機對話框窗口打開,打印作業是在隊列中,但是,沒有打印......而且我可以打印。