Click here to Skip to main content
15,896,201 members
Home / Discussions / C#
   

C#

 
GeneralRe: employee imformation list !!! Pin
V.20-Jan-12 4:00
professionalV.20-Jan-12 4:00 
AnswerRe: employee imformation list !!! Pin
PIEBALDconsult18-Jan-12 4:54
mvePIEBALDconsult18-Jan-12 4:54 
AnswerRe: employee imformation list !!! Pin
SilimSayo18-Jan-12 9:49
SilimSayo18-Jan-12 9:49 
GeneralRe: employee imformation list !!! Pin
PIEBALDconsult18-Jan-12 10:33
mvePIEBALDconsult18-Jan-12 10:33 
Questioncreating cross reference with c# and office.interop Pin
shinboxe18-Jan-12 2:26
shinboxe18-Jan-12 2:26 
AnswerRe: creating cross reference with c# and office.interop Pin
Paramu197318-Jan-12 3:15
Paramu197318-Jan-12 3:15 
GeneralRe: creating cross reference with c# and office.interop Pin
shinboxe18-Jan-12 3:31
shinboxe18-Jan-12 3:31 
GeneralRe: creating cross reference with c# and office.interop Pin
Paramu197318-Jan-12 3:58
Paramu197318-Jan-12 3:58 
Shine..actually its vb.net2008 code..I don't have time to convert to c#..so you need to convert it.

Dim OPara1 As Microsoft.Office.Interop.Word.Paragraph
Dim Rng As Microsoft.Office.Interop.Word.Range = WrdDcmt.Paragraphs(1).Range

OPara1 = WrdDcmt.Paragraphs.Add
OPara1.Format.SpaceBefore = 50
OPara1.Range.Text = "REFERENCE No. : AMC/" + Dprt + "/" + DvPoint + "/MPR-" + TextBox1.Text + vbCrLf
OPara1.Range.Text = "DATE : " + QtRqt
OPara1.Format.SpaceAfter = 6
OPara1.Range.InsertParagraphAfter()

For RichTextBox

RichTextBox4.AppendText("DATE : " + QtRqt)
RichTextBox4.AppendText(" " + vbCrLf)
RichTextBox4.AppendText("To" + vbCrLf)
RichTextBox4.AppendText("Some of Your Text" + vbCrLf)

// Simply you can copy the rtb Text and can Paste to your Range and can add to your document..

RichTextBox4.SelectAll()
RichTextBox4.Copy()
Rng.Paste()


I hope this can helps a bit for your search Thumbs Up | :thumbsup:
GeneralRe: creating cross reference with c# and office.interop Pin
shinboxe18-Jan-12 4:24
shinboxe18-Jan-12 4:24 
GeneralRe: creating cross reference with c# and office.interop Pin
Paramu197318-Jan-12 4:31
Paramu197318-Jan-12 4:31 
GeneralRe: creating cross reference with c# and office.interop Pin
shinboxe18-Jan-12 4:39
shinboxe18-Jan-12 4:39 
AnswerRe: creating cross reference with c# and office.interop Pin
Pete O'Hanlon18-Jan-12 4:54
mvePete O'Hanlon18-Jan-12 4:54 
GeneralRe: creating cross reference with c# and office.interop Pin
shinboxe18-Jan-12 5:18
shinboxe18-Jan-12 5:18 
GeneralRe: creating cross reference with c# and office.interop Pin
Pete O'Hanlon18-Jan-12 5:24
mvePete O'Hanlon18-Jan-12 5:24 
GeneralRe: creating cross reference with c# and office.interop Pin
shinboxe18-Jan-12 5:28
shinboxe18-Jan-12 5:28 
GeneralRe: creating cross reference with c# and office.interop Pin
Pete O'Hanlon18-Jan-12 5:26
mvePete O'Hanlon18-Jan-12 5:26 
GeneralRe: creating cross reference with c# and office.interop Pin
shinboxe18-Jan-12 5:45
shinboxe18-Jan-12 5:45 
GeneralRe: creating cross reference with c# and office.interop Pin
Pete O'Hanlon18-Jan-12 5:57
mvePete O'Hanlon18-Jan-12 5:57 
GeneralRe: creating cross reference with c# and office.interop Pin
shinboxe18-Jan-12 21:16
shinboxe18-Jan-12 21:16 
QuestionHow to find the Selected Column Name of ListView Control ? Pin
Paramu197318-Jan-12 1:01
Paramu197318-Jan-12 1:01 
AnswerRe: How to find the Selected Column Name of ListView Control ? Pin
Eddy Vluggen18-Jan-12 7:08
professionalEddy Vluggen18-Jan-12 7:08 
GeneralRe: How to find the Selected Column Name of ListView Control ? Pin
Paramu197318-Jan-12 19:52
Paramu197318-Jan-12 19:52 
GeneralRe: How to find the Selected Column Name of ListView Control ? Pin
Eddy Vluggen18-Jan-12 20:17
professionalEddy Vluggen18-Jan-12 20:17 
AnswerRe: How to find the Selected Column Name of ListView Control ? Pin
BillWoodruff18-Jan-12 11:36
professionalBillWoodruff18-Jan-12 11:36 
GeneralRe: How to find the Selected Column Name of ListView Control ? Pin
Paramu197318-Jan-12 19:22
Paramu197318-Jan-12 19:22 

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.