This article shows how to scan a barcode in a Windows CE Portable Terminal Scanner Device and verify the scanned data from a SQL Server Database.
First of all create a database in SQL Server.
Now insert data into this table like this.
Now create an ASP.NET web service in Visual Studio.
Open Visual Studio the select File -> New -> Web Site then select ASP.NET Web Service.
In Solution Explorer, open Service.cs.
Now write code in the Service.cs file.
Step 5
Now build this web service and publish this web service and then host it in IIS.
Host this published Webservice to IIS.
Now In the last module, create a Windows CE smart device application.
File -> New -> Smart Device App -> Windows CE.
Create a design form like this.
Now select Add Web Reference from the Solution Explorer.
Copy your running web service path and paste it here in the URL.
Replace “Localhost” and type that place “Your System Name” “CONtrivedi” or IP address.
Now run this application on a Portable Terminal Scanner device.
Pro WPF: Windows Presentation Foundation in .NET 3.0