[Gambas-user] gb.scanner

Fabien Bodard gambas.fr at ...626...
Wed Mar 11 19:10:50 CET 2015


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

-----------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub
for all
> things parallel software development, from weekly thought leadership
blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



More information about the User mailing list