rPreview PrintersMenu() problem

rPreview PrintersMenu() problem

Postby ORibeiro » Fri Nov 15, 2013 2: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: 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
 
Oscar Ribeiro
OASyS Informática
Fwh18.02 + xHarbour 1.2.3 + Bcc72
User avatar
ORibeiro
 
Posts: 187
Joined: Mon Oct 20, 2008 6:33 pm
Location: Itu, Sao Paulo, Brazil

Re: rPreview PrintersMenu() problem

Postby ORibeiro » 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
User avatar
ORibeiro
 
Posts: 187
Joined: Mon Oct 20, 2008 6:33 pm
Location: Itu, Sao Paulo, Brazil

Re: rPreview PrintersMenu() problem

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42094
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: rPreview PrintersMenu() problem

Postby ORibeiro » Tue Nov 19, 2013 2: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
User avatar
ORibeiro
 
Posts: 187
Joined: Mon Oct 20, 2008 6:33 pm
Location: Itu, Sao Paulo, Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 92 guests