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
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