RubensLott
Programmer
Good afternoon!
I am working on a PB5 issue and I need some help if possible.
I need to set a printer on a printing job and then reset the printer to the default after finishing it.
On PB8 I can do it using PrintSetPrinter() command but it doens't work on PB5...
...
STRING LS_IMPPADRAO
LONG LL_RETORNO
ls_imppadrao = PrintGetPrinter()
ll_retorno = PrintSetPrinter ('MP-4200 TH')
If ll_retorno = -1 then
Messagebox("WARNING","ERROR.",stopsign!,ok!)
return
end if
...
ll_retorno = PrintSetPrinter (ls_imppadrao)
...
Every suggestion is welcome!
Thanks in advance!
I am working on a PB5 issue and I need some help if possible.
I need to set a printer on a printing job and then reset the printer to the default after finishing it.
On PB8 I can do it using PrintSetPrinter() command but it doens't work on PB5...
...
STRING LS_IMPPADRAO
LONG LL_RETORNO
ls_imppadrao = PrintGetPrinter()
ll_retorno = PrintSetPrinter ('MP-4200 TH')
If ll_retorno = -1 then
Messagebox("WARNING","ERROR.",stopsign!,ok!)
return
end if
...
ll_retorno = PrintSetPrinter (ls_imppadrao)
...
Every suggestion is welcome!
Thanks in advance!