Greetings,
I have run into a somewhat unusual problem with a distributed app that I support. It all has to do with printer locations.
Let me explain how the app works first so as you know what steps are being taken:
1) The VB 6.0 app asks the user for a destination printer using the Windows Common Dialogue Box (in Printer form). In theory (and it works on a standard desktop), this should change the Windows printer object to point at the specified printer.
2) The VB 6.0 app then sets the printer of a crystal report to the values of the Windows printer object.
3) The crystal report then prints out to the specified destination.
However, the problem arises in that the crystal report ALWAYS prints out to the default printer at the time the application is started. If the default printer is changed while in the app (ie. using the common dialogue box) then this new default printer can only be used after closing the app then restarting it.
The current printer setup is that all the printers accessible to a user are auto-created printers on the client machine. We have no printers installed on the Citrix box itself.
Can anybody tell me why the Windows printer object refuses to adjust to what the user selected? Is it because of the way Citrix makes a single-user environment into a multi-user environment which means it handles the printer object in a different way? Or is it some other reason?
Any help greatly appreciated.
I have run into a somewhat unusual problem with a distributed app that I support. It all has to do with printer locations.
Let me explain how the app works first so as you know what steps are being taken:
1) The VB 6.0 app asks the user for a destination printer using the Windows Common Dialogue Box (in Printer form). In theory (and it works on a standard desktop), this should change the Windows printer object to point at the specified printer.
2) The VB 6.0 app then sets the printer of a crystal report to the values of the Windows printer object.
3) The crystal report then prints out to the specified destination.
However, the problem arises in that the crystal report ALWAYS prints out to the default printer at the time the application is started. If the default printer is changed while in the app (ie. using the common dialogue box) then this new default printer can only be used after closing the app then restarting it.
The current printer setup is that all the printers accessible to a user are auto-created printers on the client machine. We have no printers installed on the Citrix box itself.
Can anybody tell me why the Windows printer object refuses to adjust to what the user selected? Is it because of the way Citrix makes a single-user environment into a multi-user environment which means it handles the printer object in a different way? Or is it some other reason?
Any help greatly appreciated.