PrintDocument Class Reference Feedback Definition Namespace: Android.PrintServices Assembly: Mono.Android.dll This class represents a printed document from the perspective of a print service. [Android.Runtime.Register("android/printservice/PrintDocument", DoNotGenerateAcw...
PrintDocument Class Reference Feedback Definition Namespace: System.Drawing.Printing Assembly: System.Drawing.Common.dll Source: PrintDocument.cs Defines a reusable object that sends output to a printer, when printing from a Windows Forms application....
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)] [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)] [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)] public class PrintDocument ...
The PrintDocument class provides printing capabilities from a Silverlight application. To open a print dialog box call thePrintmethod. In Silverlight 5 the printing defaults to vector printing. In Silverlight 4, the printing defaults to bitmap printing. You can specify bitmap printing in Silverlight...
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)] [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)] [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)] public class PrintDocument ...
.NET Framework Class Library for Silverlight Microsoft.Xna.Framework Namespace Microsoft.Xna.Framework.Audio Namespace Microsoft.Xna.Framework.Graphics Namespace Microsoft.Xna.Framework.Graphics.PackedVector Namespace Microsoft.CSharp.RuntimeBinder Namespace Microsoft.Internal Namespace Microsoft.Internal...
Drawing.Printing; class PrintDocument : System.Windows.Forms.Document { // 构造函数 public PrintDocument() { // 初始化打印机 if (PrinterSettings.InstalledPrinters.Count == 0) { throw new Exception("No printers are installed."); } // 获取第一个打印机 m_PrinterSettings = new PrinterSettings();...
PrintDocument是 .NET Framework 中的一个类,用于处理文档的打印任务。当涉及到打印图片时,可以使用PrintDocument类来实现。下面是一个简单的示例代码,展示了如何使用PrintDocument打印图片: 代码语言:txt 复制 using System; using System.Drawing; using System.Drawing.Printing; public class PrintImageExample { public...
classAFCSPrinter : { /*页面打印委托*/ publicdelegatevoidDoPrintDelegate(Graphics g,refboolHasMorePage); PrintDocument iSPriner =null; boolm_bUseDefaultPaperSetting =false; DoPrintDelegate DoPrint =null; publicAFCSPrinter() { iSPriner =newPrintDocument(); iSPriner.PrintPage +=newPrintPageEventHandle...
1 usingSystem; 2 usingSystem.Text; 3 usingSystem.Drawing; 4 usingSystem.Drawing.Printing; 5 usingSystem.Windows.Forms; 6 usingSystem.IO; 7 8 namespaceTextPrinter 9 { 10 publicclassTextPrinter 11 { 12 privatestringm_Title; 13 privatestringm_Context; ...