RubensLott
Programmer
Good afternoon!
I am working on a PB5 issue and I need some help if possible.![[2thumbsup] [2thumbsup] [2thumbsup]](/data/assets/smilies/2thumbsup.gif)
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...![[sad] [sad] [sad]](/data/assets/smilies/sad.gif)
...
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!![[thumbsup2] [thumbsup2] [thumbsup2]](/data/assets/smilies/thumbsup2.gif)
Thanks in advance!
I am working on a PB5 issue and I need some help if possible.
![[2thumbsup] [2thumbsup] [2thumbsup]](/data/assets/smilies/2thumbsup.gif)
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...
![[sad] [sad] [sad]](/data/assets/smilies/sad.gif)
...
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!
![[thumbsup2] [thumbsup2] [thumbsup2]](/data/assets/smilies/thumbsup2.gif)
Thanks in advance!