Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW TO SET A PRINTER ON POWERBUILDER 5

Status
Not open for further replies.

RubensLott

Programmer
Oct 2, 2017
10
BR
Good afternoon!

I am working on a PB5 issue and I need some help if possible.[2thumbsup]
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]

...
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]
Thanks in advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top