Serwer terminali Winflector - alternatywa dla aplikacji Zdalny Pulpit, Citrix XenApp

Forum > Product technical support > Scanning

Autor: Reinaldo
Data: 2011-11-09 13:49:24

The app expects the scanner to be connected localy.  But when running the app virtually from the winflector server, how can I scan from client workstation?  

 

Reinaldo.

Autor: Bozena (staff)
Data: 2011-11-09 14:51:34

 

 

The app expects the scanner to be connected localy.  But when running the app virtually from the winflector server, how can I scan from client workstation? 

Current version of Winflector does not remote USB ports, so the scanner connected locally will not be visible for the application. If you have the application source code you can use Winflector RPC to call scanning and send the scan results to the application server.

Autor: Reinaldo
Data: 2011-11-16 19:20:45

Thank you for responding.  Yes I do have the code.  It is an xharbour app.  Would you add some code snipet on how to implement your suggestion?

 

Thank you,

 

 

Reinaldo.

Autor: Bozena (staff)
Data: 2011-11-18 12:31:37

 

Thank you for responding.  Yes I do have the code.  It is an xharbour app.  Would you add some code snipet on how to implement your suggestion?

Which code you use for scanning procedure? Is it xHarbour code or just a call from xHarbour to other (may be external) procedure?

Autor: Reinaldo
Data: 2011-11-21 22:41:30

I Use pure xharbour code to call EzTwain.dll functions such as TWAIN_Acquire.

 

Reinaldo.

Autor: Bozena (staff)
Data: 2011-11-22 15:38:06

 

I looked into EzTwain  documentation, and it seems it is possible to make calls from C/C++. It is all we need to delegate the desired functionality to the client side. 

You need to do the following:

  • Create a DLL which will make a call to EzTwain.dll, basing on the code from dev\\wf32\\sample\\gte\\gteext\\gteext.cpp. Assuming that the call will be sychronous then please make a copy of the function UserSyncRPCMsgBoxCallback() and modify it to call EzTwain functions. The generated gteext.dll should be placed on the server installation in following steps:
  1. stop the Winflector server
  2. copy gteext.dll to c:\\winflector\\server\\client\\win32\\gte directory. Please substitute c:\\winflector with the value appropriate for your installation. gteext.dll from this place will be transfered to the client via automatic ugrade mechanisms when the Winflector client is started
  3. start the Winflector server
  • From your xHarbour application call the procedure on the client. The example of such call (in C++) is placed in dev\\wf32\\sample\\app\\testcapi\\testcapi.cpp. Assuming the synchronous call you need to make a function basing on the lines 236-265 of the sample program. 

 

1


Zaloguj się aby móc pisać na forum.