0

我目前正在为 Panasonic 的 TOUGHPAD FZ-E1 编写应用程序,但在触发条形码扫描仪时遇到了问题。我知道这是可能的,因为它附带的演示应用程序就是这样做的。根据此处提供的 Microsoft 文档,我的代码是用 C# 编写的 https://msdn.microsoft.com/en-us/library/dn792056(v=winembedded.81).aspx[ ^]

当我调用此方法时应用程序崩溃:

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

代码可以编译,但是当我在设备上对其进行测试时,应用程序崩溃说找不到 IsSoftwareTriggerSupported 和 StartSoftwareTriggerAsync()。我仔细地遵循了文档中的所有步骤,我认为我没有遗漏任何东西。

如果有人知道如何实现我的目标,请告诉我。

谢谢,

劳尔

4

1 回答 1

2

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 :(

于 2015-03-13T08:43:32.743 回答