Hi,
I am trying to print out a WPF window by the following code
PrintDialog printDlg = new System.Windows.Controls.PrintDialog();
if (printDlg.ShowDialog() == true)
{
printDlg.PrintVisual(this, "First WPF Print");
}
and I am getting the following exception on the last line of code
PrintTicket provider failed to retrieve PrintCapabilities. Win32 error:
-2147418113
I am in Vista with HP LaserJet 1012 connected through USB. Application is in
VS 2008, .net 3.5.
What might be the reason for that exception?


