pageInfoList = new ArrayList ();
}
#if NET_2_0
- public virtual bool IsPreview {
+ public override bool IsPreview {
get { return true; }
}
#endif
[MonoTODO]
public override void OnStartPrint(PrintDocument document, PrintEventArgs e)
{
+ if (!document.PrinterSettings.IsValid)
+ throw new InvalidPrinterException(document.PrinterSettings);
+
/* maybe we should reuse the images, and clear them? */
foreach (PreviewPageInfo pi in pageInfoList)
pi.Image.Dispose ();