Delphi Win32 Service “Printer Selected is not valid” error on 2008 64bit standard server
I have developed a simple win 32 service in delphi 7 which performs some print operations. All works fine on our XP machines, but fails on the target Windows 2008 standard server . When I put a try except block around the print statement, it results in the "Printer Selected is not valid" error. When I check the Printer object for count of printers and event write out all the printers available in the Printer object to a file, it works fine. Only when I try to perform a print (on any printer local and network), it fails. Based on lot of research using google, I found quite a few suggestions to