CPrintDialog::GetDefaults() doesn't work?
-
Hi, I'm having a problem I don't understand. I can't get printerdefaults, and DeviceCapabilities() and DocumentProperties() don't work either. At home everything works fine for my networkprinter, but at work things go wrong. After starting the app, CWinApp::m_hDevMode and CWinApp::m_hDevNames are NULL and stay NULL, suggesting there's no default printer, but there is! Other apps like Word work fine. It's a HP4050TN networkprinter connected directly to a hub and shared on a server through a HP JetDirect port. When I set another networkprinter (connected to workstation through LPT1) as the default printer CWinApp:m_hDevMode and CWinApp::m_hDevNames are properly initialized. Does anyone have an idea what goes wrong here? Thanks, Joep
-
Hi, I'm having a problem I don't understand. I can't get printerdefaults, and DeviceCapabilities() and DocumentProperties() don't work either. At home everything works fine for my networkprinter, but at work things go wrong. After starting the app, CWinApp::m_hDevMode and CWinApp::m_hDevNames are NULL and stay NULL, suggesting there's no default printer, but there is! Other apps like Word work fine. It's a HP4050TN networkprinter connected directly to a hub and shared on a server through a HP JetDirect port. When I set another networkprinter (connected to workstation through LPT1) as the default printer CWinApp:m_hDevMode and CWinApp::m_hDevNames are properly initialized. Does anyone have an idea what goes wrong here? Thanks, Joep