Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SETTING THE PRINTER PROPERTIES THRU VB

Status
Not open for further replies.

vassoft

Programmer
Jun 12, 2002
18
MY
hai
i used common dialog control for Printer in my application.
Intially i set the number of copies for the printer as 1(one).
code is like this.

frmIhEditor.dlgIhEditor.Copies = 1

form name : frmIhEditor
dialog component name : dlgIhEditor

When i am printing the page through my application its working perfectly with WIN2000 & WIN XP operating system.

Where as with WIN 98 its not working.

Problem is the number of copies what i set through application is automatically setting in the sysytem printer settings.
So when i print second time the same page through my application its taking the system printing copies and printing according to that even though i set number of copies again.

Eg : if i give first time 2 copies it prints 2 copies. if 2nd time if i give 3 copies its printing 6 copies.

its happening with WIN 98 only.
Please help in this regard.
Is there any command to set the system printer number of copies setting thru VB application?????
 
There is a printer.printerdefault property which you must set in your program to determine whether your changes affects the default settings. PK Odendaal
pko@942.co.za

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top