Click here to Skip to main content
15,791,067 members
Home / Discussions / C#
   

C#

 
GeneralRe: Generate Word Report fails with System.Runtime.InteropServices.COMException (0x800A1066): Command Failed Pin
_Erik_10-Nov-10 8:12
_Erik_10-Nov-10 8:12 
QuestionHelp with serial data display Pin
turbosupramk39-Nov-10 2:58
turbosupramk39-Nov-10 2:58 
AnswerRe: Help with serial data display Pin
OriginalGriff9-Nov-10 3:17
mvaOriginalGriff9-Nov-10 3:17 
GeneralRe: Help with serial data display Pin
turbosupramk39-Nov-10 3:26
turbosupramk39-Nov-10 3:26 
GeneralRe: Help with serial data display Pin
OriginalGriff9-Nov-10 5:21
mvaOriginalGriff9-Nov-10 5:21 
GeneralRe: Help with serial data display Pin
turbosupramk39-Nov-10 7:38
turbosupramk39-Nov-10 7:38 
GeneralRe: Help with serial data display Pin
OriginalGriff9-Nov-10 9:21
mvaOriginalGriff9-Nov-10 9:21 
GeneralRe: Help with serial data display Pin
ColinBurnell9-Nov-10 22:41
professionalColinBurnell9-Nov-10 22:41 
I suspect your problem is with how ReadExisting() handles the carriage returns; it may well be expecting a carriage return line feed pair of characters, to indicate a new line.

If I am using Serial port for text data, I get the data as a byte array; and then convert it to a string, either using Encoding - Encoding.ASCII.GetString(myByteArrray) or manually processing each character if I need to handle specific bytes individually.

Off the top of my head, I can't remember if GetString will convert a striaght carriage return to a new line; but if not you can process each byue of the array in turn, detecting the carriage return and adding Environment.NewLine in it's place to the string.


Hope this helps.
GeneralRe: Help with serial data display Pin
turbosupramk310-Nov-10 3:23
turbosupramk310-Nov-10 3:23 
GeneralRe: Help with serial data display Pin
ColinBurnell10-Nov-10 22:20
professionalColinBurnell10-Nov-10 22:20 
AnswerRe: Help with serial data display Pin
Luc Pattyn9-Nov-10 8:26
sitebuilderLuc Pattyn9-Nov-10 8:26 
GeneralRe: Help with serial data display Pin
turbosupramk39-Nov-10 8:42
turbosupramk39-Nov-10 8:42 
AnswerRe: Help with serial data display Pin
Luc Pattyn9-Nov-10 8:50
sitebuilderLuc Pattyn9-Nov-10 8:50 
GeneralRe: Help with serial data display Pin
turbosupramk39-Nov-10 11:31
turbosupramk39-Nov-10 11:31 
GeneralRe: Help with serial data display Pin
Luc Pattyn9-Nov-10 11:52
sitebuilderLuc Pattyn9-Nov-10 11:52 
GeneralRe: Help with serial data display Pin
turbosupramk39-Nov-10 17:24
turbosupramk39-Nov-10 17:24 
GeneralRe: Help with serial data display Pin
Luc Pattyn9-Nov-10 17:48
sitebuilderLuc Pattyn9-Nov-10 17:48 
GeneralRe: Help with serial data display Pin
turbosupramk310-Nov-10 4:03
turbosupramk310-Nov-10 4:03 
GeneralRe: Help with serial data display Pin
NedPat10-Nov-10 20:38
NedPat10-Nov-10 20:38 
GeneralRe: Help with serial data display Pin
ShafiqA11-Nov-10 19:29
ShafiqA11-Nov-10 19:29 
GeneralRe: Help with serial data display Pin
Adam Yonce10-Nov-10 3:50
Adam Yonce10-Nov-10 3:50 
GeneralRe: Help with serial data display Pin
turbosupramk310-Nov-10 4:05
turbosupramk310-Nov-10 4:05 
NewsRe: Help with serial data display Pin
turbosupramk310-Nov-10 15:41
turbosupramk310-Nov-10 15:41 
AnswerRe: Help with serial data display Pin
davidwz9-Nov-10 20:04
davidwz9-Nov-10 20:04 
AnswerRe: Help with serial data display Pin
DarthDana10-Nov-10 5:59
professionalDarthDana10-Nov-10 5:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.