Setting default printer in Terminal Server environment
Posted: Mon May 19, 2014 9:24 am
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 ?
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 ?