This documentation is archived and is not being maintained.

printSettings Element

Office 2007

Specifies the printer settings used when printing the view.

Type

xsd:complexType

Structure

NameDescription
bottomMargin(Optional attribute) Specifies the bottom margin.
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.
rightMargin(Optional attribute) Specifies the right margin.
topMargin(Optional attribute) Specifies the top margin.
printerName(Optional attribute) Specifies the name of the printer.
paperSize(Optional attribute) Specifies the size of the paper.
paperSource(Optional attribute) Specifies the source of the paper.
copies(Optional attribute) Specifies the number of copies.
collate(Optional attribute) Specifies whether the paper is collated.
pageRangeStart(Optional attribute) Specifies the first page to be printed.
pageRangeEnd(Optional attribute) Specifies the last page to be printed.
printerSpecificSettings(Optional attribute) Specifies printer specific settings.

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> 

Remarks

Note   If this element or attribute is in the form definition file (.xsf), InfoPath Forms Services will ignore this setting when the form template is deployed to the server as a browser-compatible form.



Show: