GdPicture.NET Reference Guide
PrintSetFromToPage Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : PrintSetFromToPage Method
First page to print.
Last page to print.
Ask to the component for the next print process to print a range of page with multipage tif image.
Syntax
'Declaration
 
Public Function PrintSetFromToPage( _
   ByVal FromPage As Integer, _
   ByVal ToPage As Integer _
) As GdPictureStatus
public GdPictureStatus PrintSetFromToPage( 
   int FromPage,
   int ToPage
)
public function PrintSetFromToPage( 
    FromPage: Integer;
    ToPage: Integer
): GdPictureStatus; 
public function PrintSetFromToPage( 
   FromPage : int,
   ToPage : int
) : GdPictureStatus;
public: GdPictureStatus PrintSetFromToPage( 
   int FromPage,
   int ToPage
) 
public:
GdPictureStatus PrintSetFromToPage( 
   int FromPage,
   int ToPage
) 

Parameters

FromPage
First page to print.
ToPage
Last page to print.

Return Value

A member of the GdPictureStatus enumeration.
Example
Printing pages 2 to 5.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("intput.png")
If imageId <> 0 Then
   oGdPictureImaging.PrintSetFromToPage(2, 5)
   oGdPictureImaging.Print(ImageID)
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
Else
   MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members