Document { get; set; } 属性值 PrintDocument PrintDocument,它表示要预览的文档。 示例 下面的代码示例演示 的 Document、 UseAntiAlias和Zoom 属性PrintPreviewControl。 若要运行此示例,请将以下代码放在窗体中,并从窗体的构造函数或Load事件处理方法调用 InitializePrintPreviewControl 方法。 C# 复制 // Declare...
Adding a child node to an XML file using XDOCUMENT Adding a CSV file to the project properly Adding a new language Resource file to project. Adding a random number to an email address Adding a Web reference dynamically at Runtime Adding Arraylist to ListBox Adding C based dll to C# projec...
this.PrintPreviewControl1.Document = docToPrint; // Set the zoom to 25 percent. this.PrintPreviewControl1.Zoom = 0.25; // Set the document name. This will show be displayed when // the document is loading into the control. this.PrintPreviewControl1.Document.DocumentName = "c:\\someFile...
I'mprintinga copy of the document for you. 我正在给你印一份这个文件。 牛津词典 He started toprinthis own posters to distribute abroad... 他开始印刷自己的海报并发往国外。 柯林斯高阶英语词典 The Slovene bank hasprinteda specimen bank note... ...
If printing a document, set theDocumentNameproperty to the document you wish to print, and open and read the documents contents to the string you added previously. C# stringdocName ="testPage.txt";stringdocPath =@"c:\"; printDocument1.DocumentName = docName;using(FileStream stream =newFileS...
this.PrintPreviewControl1.Zoom = 0.25; // Set the document name. This will show be displayed when // the document is loading into the control. this.PrintPreviewControl1.Document.DocumentName = "c:\\someFile"; // Set the UseAntiAlias property to true so fonts are smoothed // by the ...
在下文中一共展示了Document.Print方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。 示例1: PrintMau ▲点赞 9▼ voidPrintMau(DataRow drData){try{ List<string> fieldNames =newList<string>() {"TEN_SO_YTE","TE...
The document Print Document, owned by Name, failed to print on printer 'Printer1'. Try to print the document again, or restart the print spooler. <o:p></o:p> Data type: NT EMF 1.008. Size of the spool file in bytes: 628788. Number of bytes printed: 12900. Total number of page...
Le champ Imprimer envoie des caractères de code de contrôle d’imprimante à l’imprimante sélectionnée. Microsoft Word affiche un résultat uniquement lorsque le document est imprimé. Pour obtenir les codes d’imprimante appropriés, consultez le manuel de votre imprimante. ...
Printing aview,report, orcalendarin Project is very similar to printing in other Office programs: ChooseFile>Print>Print. But gettingonlythe specific project information you want into your printout involves a little prep work before you hit the print button. Read on to see how...