Click here to Skip to main content
15,074,483 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai, i am developed a code for bar code reader which use acanlogic cs-2030 device .I my program i got 2 an error which is first error is: error 1 The type or namespace name 'Reader' could not be found (are you missing a using directive or an assembly reference?) and second is : error 2: The type or namespace name 'ReaderData' could not be found (are you missing a using directive or an assembly reference?). Here i attach code which i have a probleam.Please help me this my important assignment. I also highlight the my probleam code for your reference
C#
public class SymbolBarcodeScanner : BarcodeScanner
            {
           private Reader symbolReader = null;
          private ReaderData symbolReaderData = null;

                public override bool Initialize()
                {
                  
                    if (symbolReader != null)
                        return false;

                   
                    symbolReader = new Reader();

                 
                    symbolReaderData = new ReaderData(ReaderDataTypes.Text,
                      ReaderDataLengths.DefaultText);

                   
                    symbolReader.ReadNotify += new EventHandler(symbolReader_ReadNotify);

                  
                    symbolReader.Actions.Enable();

                   
                    symbolReader.Parameters.Feedback.Success.BeepTime = 0;
                    symbolReader.Parameters.Feedback.Success.WaveFile =
                      "\\windows\\alarm3.wav";

                    return true;
                }
Posted
Updated 18-Sep-11 22:12pm
v2
Comments
Prerak Patel 19-Sep-11 4:12am
   
Added code block.

You are missing to add some reference. Or if you have added a reference, try adding using YourNamespace; to your class.

Google[^] for more details.
   
if you dont know which namespace to add then do one thing

move your mouse to the declaration of Reader.

mouse click on "Reader", click down arrow it will suggest you the name spaces for that reader..

sorry if i misunderstad you
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900