Print to file with PB5.0 in Win2000
Posted on 2003-03-10
I need to print to a file from a datawindow retrieve in my PB5.0 app running under Windows 2000. Running under Windows NT there are no problems with this - RegistryGet for current print device, RegistrySet to change print device to generic text, PrintOpen(), PrintDataWindow(), PrintClose() and then another RegistrySet to the original print device. But running in Windows 2000, the PrintOpen() command fails with a -1 return. I can't seem to find anything on how to get this work from Windows 2000.