Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
AnswerRe: Operator Overloading Pin
Wendelius25-Jan-09 6:53
mentorWendelius25-Jan-09 6:53 
AnswerRe: Operator Overloading Pin
Butter18525-Jan-09 7:02
Butter18525-Jan-09 7:02 
GeneralRe: Operator Overloading Pin
Wendelius25-Jan-09 7:22
mentorWendelius25-Jan-09 7:22 
GeneralRe: Operator Overloading Pin
Butter18525-Jan-09 8:26
Butter18525-Jan-09 8:26 
QuestionRe: Operator Overloading [modified] Pin
Butter18525-Jan-09 20:41
Butter18525-Jan-09 20:41 
AnswerRe: Operator Overloading Pin
Wendelius26-Jan-09 7:46
mentorWendelius26-Jan-09 7:46 
Questionc# windows datagridview [modified] Pin
s_aslam9825-Jan-09 5:53
s_aslam9825-Jan-09 5:53 
Questioninserting more format into one line in word using C# Pin
Lopy12325-Jan-09 4:32
Lopy12325-Jan-09 4:32 
Hi, I am trying to figure out insert text with different format(bold, regular, italic) into line. I am looking for whole weekend but no result. Plese help me. Thanx in Advance.

Here is my code:
using Word = Microsoft.Office.Interop.Word;
using System.Reflection;
            object oMissing = System.Reflection.Missing.Value;
            object oEndOfDoc = "\\endofdoc"; /* \endofdoc is a predefined bookmark */

            //Start Word and create a new document.
            Word._Application oWord;
            Word._Document oDoc;
            oWord = new Word.Application();
            oWord.Visible = true;
            oDoc = oWord.Documents.Add(ref oMissing, ref oMissing,
                ref oMissing, ref oMissing);

             Word.Paragraph oPara6;
            //oPara6.Range.in
            oRng = oDoc.Bookmarks.get_Item(ref oEndOfDoc).Range;
            oPara6 = oDoc.Content.Paragraphs.Add(ref oRng);
            oPara6.Range.InsertAfter("  ahoja");
            oPara6.Alignment = Microsoft.Office.Interop.Word.WdParagraphAlignment.wdAlignParagraphCenter;
            oPara6.Range.Font.Size = 12;
       
            oPara6.Format.SpaceAfter = 5;
            oPara6.Range.Font.Bold = 1;
            oPara6.Range.Text = "Vymezení jednotek v budovì";
                 
         
            oPara6.Range.InsertParagraphBefore();

            oPara6.Range.InsertBefore("ahoja ");
            oPara6.Range.InsertBefore("ahoja ");
            oPara6.Range.InsertParagraphAfter();
           // oPara6.Range.Font.Bold = 1;
            oPara6.Range.InsertBefore("ahoja ");
            oPara6.Range.InsertBefore("ahoja ");
           // oPara6.Range.Font.Bold = 0;
            oPara6.Range.FormattedText.End = 0;
            oPara6.Range.FormattedText.Bold = 1;
            oPara6.Range.Text = "Vymezení jednotek v budovì";
            oPara6.Range.InsertAfter("ahoja ");
           // oPara6.Range.Font.Bold = 1;
            oPara6.Range.InsertBefore("ahoja ");
            oPara6.Range.InsertParagraphBefore();
            //oPara6.Range.Font.Bold = 0;

QuestionRegular Expressions Pin
the_jat25-Jan-09 3:49
the_jat25-Jan-09 3:49 
AnswerRe: Regular Expressions Pin
Guffa25-Jan-09 5:13
Guffa25-Jan-09 5:13 
Questiondiff in need of method overloading * cons overloading Pin
Ali_10024-Jan-09 23:58
Ali_10024-Jan-09 23:58 
AnswerRe: diff in need of method overloading * cons overloading Pin
DaveyM6925-Jan-09 0:12
professionalDaveyM6925-Jan-09 0:12 
QuestionPreventing filedestruction after saving richtextbox contents at program end Pin
fracalifa24-Jan-09 23:31
fracalifa24-Jan-09 23:31 
AnswerRe: Preventing filedestruction after saving richtextbox contents at program end Pin
Wendelius25-Jan-09 0:05
mentorWendelius25-Jan-09 0:05 
GeneralRe: Preventing filedestruction after saving richtextbox contents at program end Pin
fracalifa25-Jan-09 0:26
fracalifa25-Jan-09 0:26 
GeneralRe: Preventing filedestruction after saving richtextbox contents at program end Pin
DaveyM6925-Jan-09 0:32
professionalDaveyM6925-Jan-09 0:32 
AnswerRe: Preventing filedestruction after saving richtextbox contents at program end Pin
fracalifa25-Jan-09 0:59
fracalifa25-Jan-09 0:59 
GeneralRe: Preventing filedestruction after saving richtextbox contents at program end Pin
Wendelius25-Jan-09 0:35
mentorWendelius25-Jan-09 0:35 
GeneralRe: Preventing filedestruction after saving richtextbox contents at program end Pin
fracalifa25-Jan-09 0:56
fracalifa25-Jan-09 0:56 
GeneralRe: Preventing filedestruction after saving richtextbox contents at program end Pin
Wendelius25-Jan-09 1:02
mentorWendelius25-Jan-09 1:02 
AnswerRe: Preventing filedestruction after saving richtextbox contents at program end Pin
DaveyM6925-Jan-09 0:07
professionalDaveyM6925-Jan-09 0:07 
QuestionData binding Pin
half-life24-Jan-09 22:42
half-life24-Jan-09 22:42 
AnswerRe: Data binding Pin
Wendelius25-Jan-09 0:03
mentorWendelius25-Jan-09 0:03 
GeneralRe: Data binding Pin
half-life25-Jan-09 0:40
half-life25-Jan-09 0:40 
GeneralRe: Data binding Pin
Wendelius25-Jan-09 0:51
mentorWendelius25-Jan-09 0:51 

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.