Click here to Skip to main content
15,892,005 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: inheritance problem? Pin
Guffa16-Jan-07 22:19
Guffa16-Jan-07 22:19 
AnswerRe: inheritance problem? Pin
Dave Sexton17-Jan-07 0:40
Dave Sexton17-Jan-07 0:40 
Questionmaxlength of textbox Pin
ctlqt1216-Jan-07 13:28
ctlqt1216-Jan-07 13:28 
AnswerRe: maxlength of textbox Pin
Christian Graus16-Jan-07 15:06
protectorChristian Graus16-Jan-07 15:06 
QuestionUpdating/Patching Pin
spelltwister16-Jan-07 13:27
spelltwister16-Jan-07 13:27 
QuestionWord.doc Pin
Anybloodyid16-Jan-07 11:39
Anybloodyid16-Jan-07 11:39 
AnswerRe: Word.doc Pin
shreekar16-Jan-07 17:49
shreekar16-Jan-07 17:49 
GeneralRe: Word.doc Pin
Anybloodyid16-Jan-07 23:10
Anybloodyid16-Jan-07 23:10 
To be honest I've no idea what the True param is for in the Open method as it is code that I downloaded from one of the code sites. I've deleted it all, so that now I just have objDoc = objWord.Documents.Open(OFD1.FileName) It has made no difference to the program.
Here is what I am using to try and save the document,
 Case ".DOC"<br />
             <br />
                objWord = CreateObject("Word.Application")<br />
                objTempDoc = objWord.Documents.Add<br />
                objWord.Visible = False<br />
<br />
                ' Position Word off the screen...this keeps Word invisible <br />
                ' throughout.<br />
                objWord.WindowState = 0<br />
                objWord.Top = -3000<br />
                ' Copy the contents of the textbox to the clipboard<br />
                Clipboard.SetDataObject(rtbText.Text)<br />
                With objTempDoc<br />
                    .Content.Paste()<br />
                    .Activate()<br />
                    .Save()<br />
                    objWord.visible = False ' This line of code fixes the error<br />
                    .Close()<br />
                End With<br />
                objWord.Quit()

If it would help, I could zip it up and upload it to my site so that you can take a proper look at what I'm trying to do.
GeneralRe: Word.doc Pin
shreekar16-Jan-07 23:17
shreekar16-Jan-07 23:17 
GeneralRe: Word.doc Pin
Anybloodyid17-Jan-07 3:15
Anybloodyid17-Jan-07 3:15 
QuestionPrice Break DataGrid Pin
penguin500016-Jan-07 11:38
penguin500016-Jan-07 11:38 
AnswerRe: Price Break DataGrid [modified] Pin
dptalt17-Jan-07 4:06
dptalt17-Jan-07 4:06 
QuestionPackaging problem.. dll file not found...how to add it... Pin
JustmeNick16-Jan-07 10:27
JustmeNick16-Jan-07 10:27 
AnswerRe: Packaging problem.. dll file not found...how to add it... Pin
Kschuler16-Jan-07 10:48
Kschuler16-Jan-07 10:48 
AnswerRe: Packaging problem.. dll file not found...how to add it... Pin
dptalt17-Jan-07 4:10
dptalt17-Jan-07 4:10 
GeneralRe: Packaging problem.. dll file not found...how to add it... Pin
JustmeNick17-Jan-07 4:21
JustmeNick17-Jan-07 4:21 
GeneralRe: Packaging problem.. dll file not found...how to add it... Pin
dptalt17-Jan-07 5:04
dptalt17-Jan-07 5:04 
GeneralRe: Packaging problem.. dll file not found...how to add it... Pin
JustmeNick17-Jan-07 5:23
JustmeNick17-Jan-07 5:23 
GeneralRe: Packaging problem.. dll file not found...how to add it... Pin
dptalt17-Jan-07 5:54
dptalt17-Jan-07 5:54 
GeneralRe: Packaging problem.. dll file not found...how to add it... Pin
JustmeNick17-Jan-07 6:27
JustmeNick17-Jan-07 6:27 
Questionmain menu Pin
kendo1716-Jan-07 10:24
kendo1716-Jan-07 10:24 
AnswerRe: main menu Pin
JustmeNick16-Jan-07 10:30
JustmeNick16-Jan-07 10:30 
QuestionSetting focus to a cell in a DataGridView Pin
dptalt16-Jan-07 9:59
dptalt16-Jan-07 9:59 
Questioncircle Pin
charchabil0316-Jan-07 8:19
charchabil0316-Jan-07 8:19 
AnswerRe: circle Pin
Dave Kreskowiak16-Jan-07 9:24
mveDave Kreskowiak16-Jan-07 9:24 

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.