I've recently moved from windows XP 32 bit to Windows 7 64 bit. I can't access any printer in the Borland C++ 5 IDE. It seems like it's some sort of privileges problem because if I log in as an administrator the problem goes away. I have a simple one line program that shows the issue
PrintDialog1->Execute()
The dialog opens but if I press the properties button nothing happens. If I attempt to change any of the printer properties, i.e. page orientation etc, I get an message saying "Operation not supported on selected printer" and then several access violations.
Here's the weird bit. If I use any program to print something and open the printer properties, the problem goes away in the IDE and doesn't return until I restart the IDE. I've granted myself full access to all printers and I have full access to the directory Borland is installed to, c:\borland.
Thanks in advance for any help.
This usually happens when there is no default printer assigned, or when there are no printers installed. As you've indicated that it works fine if you print from another application first (which means a current printer has been set), we know that you have a printer installed. This seems to indicate the problem is related to not having a default printer assigned.
Go to
Devices and Printers, and see if one of your printers has a green check mark. If not, right-click one and chooseSet as default printer.