How do I software trigger the barcode scanner of a handheld device?

隐身守侯 提交于 2019-12-12 05:28:42

问题


I am currently writing an application for Panasonic's TOUGHPAD FZ-E1 and I have problems software triggering the barcode scanner. I know this is possible because the demo app that came with it does that. My code is written in C# according to the Microsoft documentation provided here https://msdn.microsoft.com/en-us/library/dn792056(v=winembedded.81).aspx[^]

The app crashes when I call this method:

private async void SoftwareTrigger_Click(object sender, RoutedEventArgs e)
{
    if (scanner.Capabilities.IsSoftwareTriggerSupported)
    {
        await claimedScanner.StartSoftwareTriggerAsync();
    }
}

The code compiles, but when I test it on device the app crashes saying that IsSoftwareTriggerSupported and StartSoftwareTriggerAsync() are not found. I carefully followed all the steps in the documentation and I don't think I missed something.

If someone has any idea how to achieve my goal please let me know.

Thank you,

Raul


回答1:


I have received a response from Panasonic and as I suspected we will have to wait for an update. Here is a quote from their email: "it looks like there is a limitation within the current WH8.1H It will be fixed into the next coming version GDR2"

So unfortunately, the solution is to wait for the update :(



来源:https://stackoverflow.com/questions/28386415/how-do-i-software-trigger-the-barcode-scanner-of-a-handheld-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!