FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour rPreview PrintersMenu() problem
Posts: 187
Joined: Mon Oct 20, 2008 06:33 PM

rPreview PrintersMenu() problem

Posted: Fri Nov 15, 2013 02:56 PM
Hi,

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 (fw): Select all Collapse
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
Oscar Ribeiro

OASyS Informática

Fwh18.02 + xHarbour 1.2.3 + Bcc72
Posts: 187
Joined: Mon Oct 20, 2008 06:33 PM

Re: rPreview PrintersMenu() problem

Posted: Tue Nov 19, 2013 10:28 AM
Why the printer selection menu in the preview button shows a printer that is not installed on my Terminal Server user?

The preview list:
CutePDF Writer
Fax
PDF reDirect Pro v2
Argox OS-214tt PPLA
\\OASYS4\Samsung SCX-4200 Series
Enviar para o OpenNote 2007

Printer that is not installed:
CutePDF Writer

Is this the problem?
Oscar Ribeiro

OASyS Informática

Fwh18.02 + xHarbour 1.2.3 + Bcc72
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: rPreview PrintersMenu() problem

Posted: Tue Nov 19, 2013 12:31 PM

Oscar,

When you print from Terminal Server does it use remote printers or local printers ?

If local, then your PDF printer should appear

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 187
Joined: Mon Oct 20, 2008 06:33 PM

Re: rPreview PrintersMenu() problem

Posted: Tue Nov 19, 2013 02:08 PM

The TS prints only to printers configured on the server, even the remote are configured on the server and are printed across it. Do not take local printers to TS.

Oscar Ribeiro

OASyS Informática

Fwh18.02 + xHarbour 1.2.3 + Bcc72

Continue the discussion