Click here to Skip to main content
15,918,808 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: its urgent Pin
Thomas Stockwell7-Sep-07 5:32
professionalThomas Stockwell7-Sep-07 5:32 
QuestionConsole Output Pin
danasegaranea6-Sep-07 19:55
danasegaranea6-Sep-07 19:55 
AnswerRe: Console Output Pin
Dave Kreskowiak7-Sep-07 5:29
mveDave Kreskowiak7-Sep-07 5:29 
QuestionQuestion on Interop.Office.Word Pin
Trupti Mehta6-Sep-07 19:00
Trupti Mehta6-Sep-07 19:00 
AnswerRe: Question on Interop.Office.Word Pin
eyes20076-Sep-07 19:47
eyes20076-Sep-07 19:47 
GeneralRe: Question on Interop.Office.Word Pin
Trupti Mehta6-Sep-07 20:37
Trupti Mehta6-Sep-07 20:37 
GeneralRe: Question on Interop.Office.Word Pin
eyes20076-Sep-07 20:48
eyes20076-Sep-07 20:48 
GeneralRe: Question on Interop.Office.Word Pin
Trupti Mehta6-Sep-07 23:10
Trupti Mehta6-Sep-07 23:10 
For doing merge, I will have to save the contents of RichTextBox in a file, & then merge that file in Document. Can't the other way out be worked. As this merge will increase 2 steps of my procedure. Additionally, I tried but, the following code gives me error

<br />
        For i = 0 To 2<br />
<br />
            ' Load file in RTB<br />
            rtb.LoadFile("\Sample1.rtf")<br />
<br />
            ' Make Changes in rtb text - Replacing some text<br />
            rtb.AppendText("DOCUMENT  " + i.ToString())<br />
            rtb.SaveFile("\Sample1Temp.rtf") '*********** Error<br />
            rtb.Clear()<br />
            ' Assign rtb text to wDoc<br />
            wDoc.Content.Text = rtb.Text<br />
<br />
            ' Insert a page break in the word document<br />
            wDoc.Content.InsertBreak(wdPgBrk)<br />
            wDoc.Merge("\Sample1Temp.rtf")<br />
        Next<br />


Once the For loop is executed, first time Sample1temp.rtf is merged in the WDoc object. Second time, on saving Sample1Temp.rtf, gives error "saying it is already in use with other process."

Thanks

Terry

QuestionHow to get active control name - - - - immediate Pin
RaveRare6-Sep-07 18:53
RaveRare6-Sep-07 18:53 
AnswerRe: How to get active control name - - - - immediate Pin
eyes20076-Sep-07 19:56
eyes20076-Sep-07 19:56 
AnswerRe: How to get active control name - - - - immediate Pin
The ANZAC6-Sep-07 20:32
The ANZAC6-Sep-07 20:32 
QuestionWhy is that property AutoCompleteCustomSource of a TextBox wont work when you set its property as multiline?? Pin
vbDigger'z6-Sep-07 18:45
vbDigger'z6-Sep-07 18:45 
AnswerRe: Why is that property AutoCompleteCustomSource of a TextBox wont work when you set its property as multiline?? Pin
eyes20076-Sep-07 19:58
eyes20076-Sep-07 19:58 
AnswerRe: Why is that property AutoCompleteCustomSource of a TextBox wont work when you set its property as multiline?? Pin
Dave Kreskowiak7-Sep-07 2:10
mveDave Kreskowiak7-Sep-07 2:10 
QuestionMicrosoft.Office.Core troubles Pin
frankiebaby26-Sep-07 16:57
frankiebaby26-Sep-07 16:57 
AnswerRe: Microsoft.Office.Core troubles Pin
Dave Kreskowiak7-Sep-07 2:12
mveDave Kreskowiak7-Sep-07 2:12 
GeneralRe: Microsoft.Office.Core troubles Pin
frankiebaby210-Sep-07 12:19
frankiebaby210-Sep-07 12:19 
QuestionRead binary file header and data array in VB 2005 Pin
Dave_66-Sep-07 13:30
Dave_66-Sep-07 13:30 
AnswerRe: Read binary file header and data array in VB 2005 Pin
Dave Kreskowiak7-Sep-07 5:16
mveDave Kreskowiak7-Sep-07 5:16 
QuestionSelecting a row in a datagrid and displaying the correspondin fields in textboxes, listboxes? Pin
Mr Oizo6-Sep-07 10:16
Mr Oizo6-Sep-07 10:16 
AnswerRe: Selecting a row in a datagrid and displaying the correspondin fields in textboxes, listboxes? Pin
Smokeywade6-Sep-07 11:22
Smokeywade6-Sep-07 11:22 
QuestionHide Child Form ControlBox,Form Pic,Min,Max Pin
P.T.R.K6-Sep-07 8:33
P.T.R.K6-Sep-07 8:33 
AnswerRe: Hide Child Form ControlBox,Form Pic,Min,Max Pin
Lucky Sheikh6-Sep-07 20:05
Lucky Sheikh6-Sep-07 20:05 
QuestionWinform Nested Datagrids - Question Pin
Smokeywade6-Sep-07 8:23
Smokeywade6-Sep-07 8:23 
AnswerRe: Winform Nested Datagrids - Question Pin
Lucky Sheikh6-Sep-07 20:08
Lucky Sheikh6-Sep-07 20:08 

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.