printSettings Element

Specifies the printer settings used when printing the view.

Type

xsd:complexType

Structure

NameDescription
bottomMargin(Optional attribute) Specifies the bottom margin.
collate(Optional attribute) Specifies whether the paper is collated.
copies(Optional attribute) Specifies the number of copies.
footer(Optional attribute) Specifies the footer text.
header(Optional attribute) Specifies the header text.
leftMargin(Optional attribute) Specifies the left margin.
marginUnitsType(Optional attribute) Specifies the margin unit size.
orientation(Optional attribute) Specifies the orientation.
pageRangeEnd(Optional attribute) Specifies the last page to be printed.
pageRangeStart(Optional attribute) Specifies the first page to be printed.
paperSize(Optional attribute) Specifies the size of the paper.
paperSource(Optional attribute) Specifies the source of the paper.
printerName(Optional attribute) Specifies the name of the printer.
printerSpecificSettings(Optional attribute) Specifies printer specific settings.
rightMargin(Optional attribute) Specifies the right margin.
topMargin(Optional attribute) Specifies the top margin.

Remarks

The printSettings element is an optional element of the view element.

Example

The following is an example of the printSettings element:

<xsf:printSettings 
   orientation="landscape" 
   header="&Pqsdf" 
   footer="&D" 
   printerName="\\printserver\printer" 
   paperSource="Auto Select" 
   paperSize="Envelope DL" 
   topMargin="0.8"  
   leftMargin="0.8" 
   bottomMargin="0.8" 
   rightMargin="0.8" 
   marginUnitsType="in" 
   copies="2" 
   collate="no" 
   pageRangeStart="1" 
   pageRangeEnd="1" > 
   <xsf:header> 
      <font> 
         <div>&Pqsdf</div> 
      </font> 
   </xsf:header> 
   <xsf:footer> 
      <font> 
         <div>&D</div> 
      </font> 
   </xsf:footer> 
</xsf:printSettings> 
©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp