Click here to Skip to main content
15,911,646 members
Home / Discussions / C#
   

C#

 
AnswerRe: YOUTUBE API with C# Pin
Christian Graus10-Dec-08 17:46
protectorChristian Graus10-Dec-08 17:46 
AnswerRe: YOUTUBE API with C# Pin
Pr@teek B@h!11-Dec-08 5:06
Pr@teek B@h!11-Dec-08 5:06 
GeneralRe: YOUTUBE API with C# Pin
bmx463711-Dec-08 5:29
bmx463711-Dec-08 5:29 
GeneralRe: YOUTUBE API with C# Pin
Pr@teek B@h!11-Dec-08 5:30
Pr@teek B@h!11-Dec-08 5:30 
QuestionHow to parse/read tabular data from a pdf Pin
dinesh choudhary10-Dec-08 17:24
dinesh choudhary10-Dec-08 17:24 
QuestionConverting data Types? Pin
evilqualar10-Dec-08 14:56
evilqualar10-Dec-08 14:56 
QuestionC# Word Automation - How to extract Rich Text Pin
blochri10-Dec-08 14:02
blochri10-Dec-08 14:02 
AnswerRe: C# Word Automation - How to extract Rich Text Pin
Dave Kreskowiak10-Dec-08 14:33
mveDave Kreskowiak10-Dec-08 14:33 
blochri wrote:
oWordTable.Range.Cells[iRowIndex].Range.Text.ToString().


This really irks me. The Text property is already a String, so calling ToString on a String is pretty pointless.

Your getting the Text of the document using the Text property. You don't automatically get RTF coded text when you use the Text property. Even if it was an RTF document, you have to get the RichText, not the Text.

Also, RTF does not support all the formatting capability of Word. If, in Word, you save the document as an RTF document and lose the formatting, chances are really good that RTF doesn't support what you're trying to get.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: C# Word Automation - How to extract Rich Text Pin
blochri11-Dec-08 2:36
blochri11-Dec-08 2:36 
GeneralRe: C# Word Automation - How to extract Rich Text Pin
Dave Kreskowiak11-Dec-08 12:28
mveDave Kreskowiak11-Dec-08 12:28 
GeneralRe: C# Word Automation - How to extract Rich Text Pin
blochri12-Dec-08 3:30
blochri12-Dec-08 3:30 
QuestionGridview search Pin
Andrew Woodward10-Dec-08 10:35
Andrew Woodward10-Dec-08 10:35 
AnswerRe: Gridview search Pin
Christian Graus10-Dec-08 12:39
protectorChristian Graus10-Dec-08 12:39 
GeneralRe: Gridview search Pin
Andrew Woodward10-Dec-08 12:43
Andrew Woodward10-Dec-08 12:43 
QuestionCrystal reports charts programmatically? Pin
Priya Prk10-Dec-08 9:03
Priya Prk10-Dec-08 9:03 
AnswerRe: Crystal reports charts programmatically? Pin
Wendelius10-Dec-08 11:07
mentorWendelius10-Dec-08 11:07 
GeneralRe: Crystal reports charts programmatically? Pin
Priya Prk10-Dec-08 23:39
Priya Prk10-Dec-08 23:39 
GeneralRe: Crystal reports charts programmatically? Pin
Wendelius11-Dec-08 4:33
mentorWendelius11-Dec-08 4:33 
QuestionNeed some help loading a treeview [modified] Pin
Rafone10-Dec-08 8:33
Rafone10-Dec-08 8:33 
AnswerRe: Need some help loading a treeview Pin
Christian Graus10-Dec-08 9:18
protectorChristian Graus10-Dec-08 9:18 
GeneralRe: Need some help loading a treeview Pin
Rafone10-Dec-08 10:13
Rafone10-Dec-08 10:13 
GeneralRe: Need some help loading a treeview Pin
Christian Graus10-Dec-08 12:40
protectorChristian Graus10-Dec-08 12:40 
GeneralRe: Need some help loading a treeview Pin
Rafone24-Dec-08 5:13
Rafone24-Dec-08 5:13 
QuestionTwo questions related to Chart Control Pin
Seraph_summer10-Dec-08 5:31
Seraph_summer10-Dec-08 5:31 
AnswerRe: Two questions related to Chart Control Pin
Pete O'Hanlon10-Dec-08 6:02
mvePete O'Hanlon10-Dec-08 6:02 

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.