Hi, Support:
I want to automatically read input data from a scanner gun for bar code, and want to know whether the api supportes this function, If so,how to reach this demand?
PS: The scanner gun is connected into an USB port.
Thanks for your help.
@ducaisoft
Can you please specify which Aspose API you are referring to for reading input data from the scanner gun?
@ducaisoft,
Please note, Aspose.BarCode primarily focuses on barcode generation, recognition, and related operations, but it does not directly interact with hardware devices like scanner guns. Aspose.BarCode can work in integration i.e., when barcode data obtained, it can process that data to decode it. Scanner guns typically emulate keyboard input, meaning that when you scan a barcode, the data is entered as if it was typed from a keyboard.
-
You may create a simple form in a .NET application with a TextBox
. When the scanner gun reads a barcode, it will automatically input the scanned data into the TextBox
. You may use the captured data and process the scanned data by Aspose.BarCode. If you want to decode and validate the barcode using Aspose.BarCode, you can use the captured data and process it accordingly.
-
If you need to directly interact with the hardware scanner (which is not directly supported by Aspose), you might consider using some third-party libraries or SDKs to read data from the USB-connected scanner and then pass it to Aspose.BarCode for processing.