You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Printing > PrintSetPaperSize Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.PrintSetPaperSize Method

Sets the paper size to be used by the active printer.

C#
public PrintSetPaperSize(
    PaperSize PaperSize
);
Visual Basic
Public Sub PrintSetPaperSize(
    ByVal PaperSize As PaperSize
)
Parameters
Parameters 
Description 
PaperSize 
Paper size. A PaperSize object.  

Retrieve information about all paper formats available in the current printer.

Private prn As New Printing.PrintDocument
 
For n As Integer = 0 To prn.DefaultPageSettings.PrinterSettings.PaperSizes.Count - 1
    MsgBox(prn.DefaultPageSettings.PrinterSettings.PaperSizes(n).ToString)
Next
What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.