|
| | |||||||
| Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications. |
| | LinkBack | Thread Tools |
| |||
| Customer Recognizer What is wrong with this: WordList wordList = new WordList(); foreach (string s in strWords.Split('#')) { wordList.Add(s); } recognitionContext.WordList = wordList; recognitionContext.Factoid = Factoid.WordList; The line "recognitionContext.WordList = wordList;" fails with a "The call is out of order". Value of strWords at the time is: ?strWords "Cats#Dogs" |
| |||
| RE: Customer Recognizer Hi njhartley, Setting the WordList property succeeds only if the Strokes property is null. You must set the WordList property before you attach a Strokes collection to the Strokes property of the RecognizerContext, or you must set the Strokes property to null and then set the WordList property. See MSDN for details: http://msdn.microsoft.com/library/de...s/wordlist.asp So you will have to change your code like this: foreach (string s in strWords.Split('#')) { wordList.Add(s); } recognitionContext.Strokes = null; recognitionContext.WordList = wordList; recognitionContext.Factoid = Factoid.WordList; recognitionContext.Strokes = strokesToRecognize; Thanks, Stefan Wick "njhartley******.com" wrote: > > What is wrong with this: > > WordList wordList = new WordList(); > > foreach (string s in strWords.Split('#')) > { > wordList.Add(s); > } > > recognitionContext.WordList = wordList; > recognitionContext.Factoid = Factoid.WordList; > > The line "recognitionContext.WordList = wordList;" fails with a "The > call is out of order". Value of strWords at the time is: > > ?strWords > "Cats#Dogs" > > |
| |||
| Re: Customer Recognizer Also, the InkAnalyzer doesn't suffer from this limitation. You can create a global AnalysisHint even while there are results already in the InkAnalyzer. You can grab Ink Analyzer Explorer at www.einsteintech.net and explore its capabilities. -- Josh Einstein (Tablet PC MVP) Einstein Technologies Tablet Enhancements for Outlook - Try it free: www.tabletoutlook.com "Stefan Wick[MS]" <StefanWickMS@discussions.microsoft.com> wrote in message news:5A90FF90-CA34-403D-A10A-9997B4B98E12@microsoft.com... > Hi njhartley, > > Setting the WordList property succeeds only if the Strokes property is > null. > You must set the WordList property before you attach a Strokes collection > to > the Strokes property of the RecognizerContext, or you must set the Strokes > property to null and then set the WordList property. See MSDN for details: > > http://msdn.microsoft.com/library/de...s/wordlist.asp > > So you will have to change your code like this: > > foreach (string s in strWords.Split('#')) > { > wordList.Add(s); > } > recognitionContext.Strokes = null; > recognitionContext.WordList = wordList; > recognitionContext.Factoid = Factoid.WordList; > recognitionContext.Strokes = strokesToRecognize; > > Thanks, > Stefan Wick > > > "njhartley******.com" wrote: > >> >> What is wrong with this: >> >> WordList wordList = new WordList(); >> >> foreach (string s in strWords.Split('#')) >> { >> wordList.Add(s); >> } >> >> recognitionContext.WordList = wordList; >> recognitionContext.Factoid = Factoid.WordList; >> >> The line "recognitionContext.WordList = wordList;" fails with a "The >> call is out of order". Value of strWords at the time is: >> >> ?strWords >> "Cats#Dogs" >> >> |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Recognizer pack for the 2005 | =?Utf-8?B?SmFub2g=?= | Windows XP Tablet PC Newsgroup | 2 | 12-17-2004 11:15 AM |
| Dutch Recognizer? | =?Utf-8?B?R2VyYXJkIEJyYWFk?= | Windows XP Tablet PC Newsgroup | 2 | 12-12-2004 03:17 AM |
| Recognizer upgrade | Tony Linguini | Windows XP Tablet PC Newsgroup | 1 | 10-27-2004 01:17 PM |
| Questions on MUI and Recognizer Pack | Wilson Chin | Windows XP Tablet PC Newsgroup | 11 | 09-28-2004 07:51 AM |
| When will the tablet recognizer pack for SP2 come out? | klasla@welho.com | Windows XP Tablet PC Newsgroup | 2 | 09-17-2004 01:28 PM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |