Print Dialog Control in VB.NET


PrintDialog Control allows user to print document. It allows following facilities to user:
(1) Print Document
(2) Select printer
(3) Specify Page Range
(4) Specify Number of copies
(5) Find Printer on Network

Properties of Print Dialog Control in VB.NET



Property Purpose

AllowCurrentPage

It is used to specify weather Current Page radio button is enabled or disabled in PrintDialog Control. It has Boolean value. Default value is false. Current Page option allows user to print only current page in which cursor is set.

AllowSelection

It is used to specify weather Selection radio button is enabled or disabled in PrintDialog Control. It has Boolean value. Default value is false. Selection option allows user to print only selected portion of the document.

AllowSomePages

It is used to specify weather Pages radio button is enabled or disabled in PrintDialog Control. It has Boolean value. Default value is false. Pages option allows user to specify range of pages to be print from document.
For Example:
3-7 will print page number 3 to 7 from entire document.
1,3,5,8 will print Page Number 1, 3, 5 and 8.

AllowPrintToFile

It is used to specify weather Print to File Check Box is enabled or disabled in PrintDialog Control. It has Boolean value. Default value is true.

PrintToFile

It is used to specify weather Print to File Check Box is by default selected or not in PrintDialog Control. It has Boolean value. Default value is false.

ShowNetwork

It is used to specify weather Show Network button is displayed in PrintDialog Control or not. It has Boolean value. Default value is true.


     

Methods of Print Dialog Control in VB.NET



Method Purpose

ShowDialog

It is used to Show or run Print Dialog Control.

Reset

It is used to reset all the options of PrintDialog to its default values.


Download Projects


Download Programs