Setting default printer in Terminal Server environment

Post Reply
User avatar
Marco Turco
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London
Contact:

Setting default printer in Terminal Server environment

Post by Marco Turco »

Hi,
there are some problem under Terminal Server to set a default printer.
This code runs on local but not under TS:

function main

MsgInfo( "Current printer: "+PrnGetName() )

cPrinter:="PDF24 PDF"

oPrn:=PrintBegin("",.f.,.T.,cPrinter)
oPrn:End()

MsgInfo( "Current printer: "+PrnGetName() ) && it return PDF24 PDF only if executed in local, not in TS
return

Any ideas ?
Best Regards,

Marco Turco
SOFTWARE XP LLP
Patrizio
Posts: 90
Joined: Wed Nov 07, 2007 8:56 am
Location: Italy
Contact:

Re: Setting default printer in Terminal Server environment

Post by Patrizio »

Do you install the PDF24 driver on client?
User avatar
Marco Turco
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London
Contact:

Re: Setting default printer in Terminal Server environment

Post by Marco Turco »

Of course.
It is installed on the client and on the server.
The full name on the server is "PDF24 PDF (redirection 1)" and obviusly I provide this name on the server side.
Best Regards,

Marco Turco
SOFTWARE XP LLP
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Setting default printer in Terminal Server environment

Post by karinha »

João Santos - São Paulo - Brasil
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: Setting default printer in Terminal Server environment

Post by Otto »

Marco,
have you installed the Printer - driver within every remote session I mean you log in with the remote users password and install the driver.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
Patrizio
Posts: 90
Joined: Wed Nov 07, 2007 8:56 am
Location: Italy
Contact:

Re: Setting default printer in Terminal Server environment

Post by Patrizio »

Try to set the default printer with drive and port

Code: Select all

PrnGetName()  + "," + PrnGetDrive() + "," + PrnGetPort()
 
Post Reply