Записи с меткой «wpf»

Печать tiff документов (windows forms)

using System; using System.Drawing; using System.Drawing.Imaging; using System.Drawing.Printing; using System.Windows.Forms; namespace WpfControls.CommonClasses { public class WinFormsTiffPrinter { private System.Drawing.Printing.PrintDocument _printDocument = new System.Drawing.Printing.PrintDocument(); private System.Windows.Forms.PrintDialog _printDialog = new System.Windows.Forms.PrintDialog(); private Image _tiffToPrint; private FrameDimension _objDimension; private int _pageCount; private int _activePage; private string _documentPath; public WinFormsTiffPrinter(string documentPath) { _documentPath = documentPath; } public void Print() …

Печать tiff документов (wpf)

using System; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Markup; using System.IO; using System.Windows.Media.Imaging; using System.Collections.Generic; namespace WpfControls.CommonClasses { public class TiffDocumentPrinter: IDisposable { private string _documentPath; private PrintDialog _printDialog; private List<Stream> _streams; public TiffDocumentPrinter(string documentPath) { _documentPath = documentPath; _printDialog = new PrintDialog(); _streams = new List<Stream>(); } public void Print() { if (_printDialog.ShowDialog() …