Page 1 of 1

Setting default printer in Terminal Server environment

PostPosted: Mon May 19, 2014 9:24 am
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 ?

Re: Setting default printer in Terminal Server environment

PostPosted: Mon May 19, 2014 10:15 am
by Patrizio
Do you install the PDF24 driver on client?

Re: Setting default printer in Terminal Server environment

PostPosted: Mon May 19, 2014 10:28 am
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.

Re: Setting default printer in Terminal Server environment

PostPosted: Mon May 19, 2014 3:35 pm
by karinha

Re: Setting default printer in Terminal Server environment

PostPosted: Mon May 19, 2014 8:26 pm
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

Re: Setting default printer in Terminal Server environment

PostPosted: Tue May 20, 2014 7:33 am
by Patrizio
Try to set the default printer with drive and port

Code: Select all  Expand view

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