I am getting different result here when I compile this code with my FWH11.08 and FWH1912.
This is the old behavior that I want to retain.
1. Run program
2. Click menu Printer Setup
3. Select a different printer than windows default. e.g. Microsoft Print To Pdf
4. Click Print [will go to recently selected printer]
5. Click Print again [will still go the printer recently selected within the program]
This is the behavior with FWH1912
1. Run program
2. Click menu Printer Setup
3. Select a different printer than windows default. e.g. Microsoft Print To Pdf
4. Click Print [will go to recently selected printer]
5. Click Print again [will now go to windows default printer]
Any help is deeply appreciated as customers have been complaining about the different behavior after their program was upgraded.
TIA
This is the self-contained test code
- Code: Select all Expand view RUN
#include "FiveWin.ch"
static oWnd
//----------------------------------------------------------------------------//
function Main()
DEFINE WINDOW oWnd FROM 1, 1 TO 20, 60 MENU SysMenu()
@ 3, 3 BUTTON "&Print" OF oWnd SIZE 80, 20 ;
ACTION PrintMe() // try also with oWnd:HardCopy()
ACTIVATE WINDOW oWnd
return nil
//----------------------------------------------------------------------------//
function PrintMe()
local oPrn
PRINT oPrn NAME "Test"
PAGE
oPrn:Say( 20, 20, "This is a test" )
ENDPAGE
ENDPRINT
return nil
//----------------------------------------------------------------------------//
STATIC FUNC SysMenu()
local oMenu
MENU oMenu
MENUITEM "Printer Setup" action printerSetup()
MENUITEM "Exit" action oWnd:end()
ENDMENU
return oMenu