public void Preview() { PrinterContent content = this.GetPrinterContent(); if (content != null) { content.Preview(); } }
/// <summary> /// 根据全局配置来打印 /// </summary> public void Print() { PrinterContent content = this.BuildPrinter(); if (printSetting.PrintModel == "直接打") { content.Print(); } else if (printSetting.PrintModel == "选择打印机") { content.PrinterSetting(); } else { content.Preview(); } }