when I click on the printer button in the report preview, change the printer with PrintersMenu(), and then ask to print it does not print.
The problem appeared on the terminal server windows 2008 r2. Tested on Windows 8 without Network and it worked normally.
In the example above change the printer on button of the viewer and see the result. The system will disconnect the printer.
- Code: Select all Expand view
GetPrintDC( GetActiveWindow() ) // -> Please, change de default printer in this point
MsgInfo( PrnGetName() ) // See the new printer selected above
PRINT oPrn NAME "TESTING"+" ("+ PrnGetName() +")" PREVIEW MODAL
PAGE
oPrn:Say( 1, 1, "Hello" )
ENDPAGE
// CHANGE THE PRINTER in the button of the Report Preview
ENDPRINT
MsgInfo( PrnGetName() ) // See that printer go back to the default in windows