VB School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a VB Expert!

Join 300,372 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,469 people online right now. Registration is fast and FREE... Join Now!




some .doc tutorial 101 using vb6

 

some .doc tutorial 101 using vb6, need some advice on how to put or use a MSWord in addition to VB6

gen009

1 Jul, 2009 - 03:31 AM
Post #1

New D.I.C Head
*

Joined: 15 May, 2009
Posts: 20



Thanked: 1 times
My Contributions
i did some research in my project, and I've came this far:

CODE
Private Sub cmdexit_Click()
''exit button
Unload Me
End Sub

Private Sub cmdopen_Click()
''open button
If opttxt.Value = True Then

    Dim F$
    Open (file.Path + "\" + file) For Binary As #1
    F$ = Space$(LOF(1))
    Get #1, , F$
    Close #1
    rtbox.Text = F$
Else
    MsgBox "UNDONE!"
End If
rtbox.Locked = True
End Sub

Private Sub cmdsave_Click()
MsgBox "UNDONE!"
End Sub

Private Sub dir_Change()
''directory
file.FileName = dir.Path
file.Refresh
End Sub


Private Sub drv_Change()
''drive [as in drive C: or D: ...]
dir.Path = drv.Drive
dir.Refresh
End Sub

Private Sub file_DblClick()
''same with open button
If opttxt.Value = True Then
    Dim F$
    Open (file.Path + "\" + file) For Binary As #1
    F$ = Space$(LOF(1))
    Get #1, , F$
    Close #1
    rtbox.Text = F$
Else
    MsgBox "UNDONE!"
End If
rtbox.Locked = True
End Sub

Private Sub optdoc_Click()
If optdoc.Value = True Then file.Pattern = "*.doc"
End Sub

Private Sub opttxt_Click()
If opttxt.Value = True Then file.Pattern = "*.txt"
End Sub



i uploaded a picture of my project and i'm concerned on how to put a word application on my VB_form and open it using the way I open some .txt file.

in my project, Im not yet done with the editing the .txt file and the error in opening invalid Drives, but im actually concerned in adding a MS Word application in my code.

This post has been edited by gen009: 1 Jul, 2009 - 03:46 AM


Attached thumbnail(s)
Attached Image
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 09:12PM

Live VB Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month