[Gambas-user] gb.scanner

Johny Provoost johny.provoost at ...27...
Wed Mar 11 19:24:29 CET 2015



Op 11-03-15 om 19:10 schreef Fabien Bodard:
> Le 11 mars 2015 17:59, "Johny Provoost" <johny.provoost at ...27...> a écrit :
>> Hello,
>>
>> Is there's some place where I can get some more help about gb.scanner.
>> The help in Gambas doesn't show much.
>>
>> I'll tried
>>
>> Public Sub Button1_Click()
>>     Dim HPScan As Image
>>     Dim MyScan As Scanner
>>     Scanners.Search
>>     MyScan.Scan(HPScan)
>> End
>>
>> scanners.search find my scanner (see in the terminal window:
>>
> hpaio:/usb/Deskjet_2540_series?serial=CN38T2DM680604|Hewlett-Packard|Deskjet_2540_series|all-in-one)
>> but myscan.scan(HPScan) gives 'Null Object'
>>
>> Do I somewhere config my scanner like you have to config your printer?
>>
>> Regards,
>> Johny
>>
> Well I've not documented the component yet
>
> But you must do :
>
> Himg =Scanners["
> hpaio:/usb/Deskjet_2540_series?serial=CN38T2DM680604"].scan()
>
> Or
>
> Hmyscan as scanner
> Hmyscan =scanners["hpaio:/usb/Deskjet_2540_series?serial=CN38T2DM680604"]
>
> Himg=Hnyscan.scan()
>
> I will send an example on the farm quikly
>
> -----------------------------------------------
>

Thank you Fabian.
Can start now.  Looking forward to your example.

Johny




More information about the User mailing list