Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #4728
| Newsgroups | comp.lang.clipper.visual-objects |
|---|---|
| Date | 2013-02-05 11:11 -0800 |
| References | <b24262bb-af21-4cf8-a09f-bcf293f06f72@googlegroups.com> <kckrhd$55r$1@dont-email.me> <e334bbfe-06a8-4b17-b9cb-f103391d623a@googlegroups.com> <ac4e03eb-0dc2-42a8-9c63-5bc38656c599@googlegroups.com> |
| Message-ID | <72280106-07bf-4f0e-bd54-e95a3f591b3c@googlegroups.com> (permalink) |
| Subject | Re: GetPrinters - Terminal server |
| From | Jean-Luc Stassen <jls@igsoft.be> |
Hi David,
here is what I finaly done:
I save the printer name **without** the redirect term then I overclass the Print method of Reportpro, in it I add the correct redirect term:
oHKCU :=FabRegistry{ "Volatile Environment" ,HKEY_CURRENT_USER}
IF oHKCU<>NULL_OBJECT
a:=oHKCU:GetSections()
// always one key here
IF ALen(a)>0
// add the current redirection depend of the system language
IF GetSystemDefaultLangID()==MAKELANGID(LANG_FRENCH,SUBLANG_FRENCH_BELGIAN) .OR.;
GetSystemDefaultLangID()==MAKELANGID(LANG_FRENCH,SUBLANG_FRENCH)
credir := "(redirection de "
ELSEIF GetSystemDefaultLangID()==MAKELANGID(LANG_DUTCH,SUBLANG_DUTCH_BELGIAN) .OR.;
GetSystemDefaultLangID()==MAKELANGID(LANG_DUTCH,SUBLANG_DUTCH)
credir := "(redirect van "
ELSEIF GetSystemDefaultLangID()==MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_UK) .OR.;
GetSystemDefaultLangID()==MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US)
credir := "(redirected "
ELSE
credir := "(redirection de "
ENDIF
cprinter := cprinterbase + " "+ credir + AllTrim(a[1])+")"
ENDIF
ENDIF
I juste have to test that in full working environment, but it would work !
Jean-Luc
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread
GetPrinters - Terminal server igsofterror@gmail.com - 2012-12-20 09:41 -0800
Re: GetPrinters - Terminal server Jean-Luc Stassen <igsoftsprl.be@gmail.com> - 2013-01-09 03:23 -0800
Re: GetPrinters - Terminal server dlzc <dlzc1@cox.net> - 2013-01-09 05:52 -0800
Re: GetPrinters - Terminal server "Jamal" <vodotnet_nospam@yahoo.com> - 2013-01-09 17:38 -0500
Re: GetPrinters - Terminal server Jean-Luc Stassen <jls@igsoft.be> - 2013-02-02 06:58 -0800
Re: GetPrinters - Terminal server dlzc <dlzc1@cox.net> - 2013-02-02 09:52 -0800
Re: GetPrinters - Terminal server Jean-Luc Stassen <jls@igsoft.be> - 2013-02-05 11:11 -0800
csiph-web