Chikita leaderboard

Huwebes, Nobyembre 10, 2011

How to Connect MS Word to print an output in VB 6.0

Did you ever wonder if you can connect your MS Word document to your VB 6.0 for a dynamic print output? Now you can, in this video learn how to use MS Word Forms Component Text Form and use MS Word to create custom Print Setup like Letter, Legal, A4 or any custom size and connect it to your Visual Basic programs.  Here are the codes used in this video tutorial: 

Private Sub Command1_Click()
Static wd1 As Word.Application
Static wd1Doc As Word.Document
Set wd1 = New Word.Application
wd1.Visible = True

Set wd1Doc = wd1.Documents.Add(App.Path & "\profile.dot")

With wd1Doc
  .FormFields("W_name").Range = Text1.Text
 .FormFields("W_address").Range = Text2.Text
    .FormFields("W_occupation").Range = Text3.Text
End With
Set wd1 = Nothing
Set wd1Doc = Nothing

End Sub

Share and Enjoy!



9 (na) komento:

  1. WALA BANG IN CHRONOLOGICAL ORDER ANG VIDEOS AND TUTORIAL? MAY

    TumugonBurahin
  2. UNG video kasi nauna activity 7 then 5 then di ko na mahanap ung ibang activity. san pedde makita to?
    may online tutorial ba kayo? paid free?

    TumugonBurahin
  3. Thanks for sharing this.. I am a freelancer.. working as a Researcher and Data Entry Specialist.. it is really great to work at home :-)

    Kindly visit http://www.unemployedpinoys.com/ for more details on how to be a Freeman Working at home.

    TumugonBurahin
    Mga Tugon
    1. repected sir,
      this program is not working(How to Connect MS Word to print an output in VB 6.0) please give me the suggession. i need very useful this program. what is your using microsoft word version, vb version and imports classes. please give me the suggession as soon as possible.

      Burahin
  4. Sir panu po maprint yung laman ng imagebox sa msword as an output? Tnx po

    TumugonBurahin
  5. repected sir,
    this program is not working(How to Connect MS Word to print an output in VB 6.0) please give me the suggession. i need very useful this program. what is your using microsoft word version, vb version and imports classes. please give me the suggession as soon as possible.

    TumugonBurahin