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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change printer problem

Status
Not open for further replies.

rudyboy

Programmer
Oct 16, 2003
49
PH
Hi everyone,

I tried changing the default printer at runtime I used the following syntax :

RegistrySet("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows", "Device", printername)

it is working ok in XP and NT workstation but when i transfer it to NT Server it is not printing(i am using administrator profile). I debug the program, it can change the default printer in the registry. Before printing I get the datawindow printer and it returns the previous printer instead of the new default printer.

What seems to be the problem? I am using PB 6.5


Thanks



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top