thank you Sam for your reply.
Actually i am using class that uses WIN API and that class is used in my project of VB
anyway, is there any way to set all properties of printer (mainly paper size and paper source) to default printer programatically in vb
i had done this but i am facing one problem is that, the settings are not apply to all printers (e.g settings are not apply to HP LserJet 1022 printer).
can you help me in this...