On the print side of things we use the BeforePrint event to let us default to landscape printing. Removing our handler, and the select printer dialog comes up just fine, no errors (but defaulting to portrait).
Error (could not seem to insert the image):
Quote:
Assertion failed!
Program:...
File:src\BL_DataExchange.cpp
Line: 73
Expression: wcPrinterName && wcslen(wcPrinterName)>0
...
It may be noted I've seen this outside of EO when rebooting my PC. But it does happen 100% of the time when loading our printer dialog. It still loads the printers though!
Code:
private void loadPrinters()
{
PrinterSettings settings = new PrinterSettings();
foreach (String printer in PrinterSettings.InstalledPrinters)
{
ComboBoxItem item = new ComboBoxItem();
item.Content = printer.ToString();
if (settings.PrinterName == printer)
item.IsSelected = true;
cbPrinters.Items.Add(item);
}
}