SlideShare una empresa de Scribd logo
1 de 11
Descargar para leer sin conexión
The life of era
Visual Basic 6.0
Create a data from Visual Basic and print an output to MS Word.
Written and Designed by
Mark John P. Lado
No part of this book may reproduce without written consent from the author. By using this
book you agree not to use this for any purpose that is illegal. You agree not to alter, modify,
or cause the alteration or modification, of the book, without prior written consent from the
author.
ACKNOWLEDGEMENT
First and foremost to our Almighty God for giving me strength every day for the guidance
and good health, for the graces and blessings that help me in making the project possible.
And most of all to my parents and guardians, thank you for showing your unconditional love
and unending support financially and spiritually.
INTRODUCTION
The book contains programming codes which is written in VB6 or the Visual Basic 6.
In this book, you will learn on how to create a simple program, print a data from visual basic
to Microsoft Word and other basic procedures. This is a beta version only where the reader
can get some ideas in performing the project. This Book contains screen shots of the actual
program and their respective source code.
INTERFACE AND SOURCE CODE
Show Form
To show another form from the current form you need to use command button and add it
to your current form.
And create another form where when you click the command button the next form will
show up.
Then double click the command button then write the codes and then run.
Private Sub Command1_Click()
Form1.Hide
Form2.Show
End Sub
Print data using ms word.
In this section you need to add labels, text boxes and one command button for print.
Rename it.
The label1 is for name, label2 is for age, label3 is for address. The textboxes is the same as
label but not the same function. Just remove the text of textboxes. Change also the caption
of command button into Print.
After making the interface, open an empty Microsoft word and create your template so that
when you click the print button from your vb6 you will be directed to ms word.
In your word, go to developer’s ribbon. And add text form, same format as you did in your
vb6 program.
As you see there is and dark boxes. Right click on it and go to properties. In the bookmark
rename the default text1 into w_name, do this to the age and address. And after editing
save it as template and put it where your visual basic program located.
Go back to your program.
Double click the print button and write the codes. Observe properly.
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 & "mytemplate.dot")
With wd1Doc
.FormFields("w_name").Range = Text1.Text
.FormFields("w_age").Range = Text2.Text
.FormFields("w_address").Range = Text3.Text
End With
Set wd1 = Nothing
Set wd1Doc = Nothing
End Sub
Setting references
Set ms word references so that you can connect. Find the Microsoft Word 12 Object Library
and check. And save your project where your template was.
Test your program.

Más contenido relacionado

La actualidad más candente

Fixed: MS Word the File is Corrupted and Cannot be Opened
Fixed: MS Word the File is Corrupted and Cannot be OpenedFixed: MS Word the File is Corrupted and Cannot be Opened
Fixed: MS Word the File is Corrupted and Cannot be OpenedItworlds Worlds
 
How to convert pdf to excel without software
How to convert pdf to excel without software How to convert pdf to excel without software
How to convert pdf to excel without software Abenezer Abiti
 
exploring_w04_grader_a1.docx (solution)
exploring_w04_grader_a1.docx (solution)exploring_w04_grader_a1.docx (solution)
exploring_w04_grader_a1.docx (solution)JackCandtona
 
Microsoft outlook 2010
Microsoft outlook 2010Microsoft outlook 2010
Microsoft outlook 2010ematz0209
 
How to manage the table of contents with one click (Microsoft Word 2007) - fo...
How to manage the table of contents with one click (Microsoft Word 2007) - fo...How to manage the table of contents with one click (Microsoft Word 2007) - fo...
How to manage the table of contents with one click (Microsoft Word 2007) - fo...Chia Siew Lian
 
Page Numbers & Hanging Indents in Word
Page Numbers & Hanging Indents in WordPage Numbers & Hanging Indents in Word
Page Numbers & Hanging Indents in Wordjskotnicki
 
Using Headers and Footers in Word
Using Headers and Footers in WordUsing Headers and Footers in Word
Using Headers and Footers in WordAngelaMcGaffin
 
3 Alternates to Whiteout PDF
3 Alternates to Whiteout PDF3 Alternates to Whiteout PDF
3 Alternates to Whiteout PDFDeftPDF
 
What's New in Office 2016
What's New in Office 2016What's New in Office 2016
What's New in Office 2016Dave Umberger
 

La actualidad más candente (13)

Fixed: MS Word the File is Corrupted and Cannot be Opened
Fixed: MS Word the File is Corrupted and Cannot be OpenedFixed: MS Word the File is Corrupted and Cannot be Opened
Fixed: MS Word the File is Corrupted and Cannot be Opened
 
How to convert pdf to excel without software
How to convert pdf to excel without software How to convert pdf to excel without software
How to convert pdf to excel without software
 
exploring_w04_grader_a1.docx (solution)
exploring_w04_grader_a1.docx (solution)exploring_w04_grader_a1.docx (solution)
exploring_w04_grader_a1.docx (solution)
 
Microsoft outlook 2010
Microsoft outlook 2010Microsoft outlook 2010
Microsoft outlook 2010
 
How to manage the table of contents with one click (Microsoft Word 2007) - fo...
How to manage the table of contents with one click (Microsoft Word 2007) - fo...How to manage the table of contents with one click (Microsoft Word 2007) - fo...
How to manage the table of contents with one click (Microsoft Word 2007) - fo...
 
Page Numbers & Hanging Indents in Word
Page Numbers & Hanging Indents in WordPage Numbers & Hanging Indents in Word
Page Numbers & Hanging Indents in Word
 
Microsoft Word Basics2.ppt
Microsoft Word Basics2.pptMicrosoft Word Basics2.ppt
Microsoft Word Basics2.ppt
 
Using Headers and Footers in Word
Using Headers and Footers in WordUsing Headers and Footers in Word
Using Headers and Footers in Word
 
3 Alternates to Whiteout PDF
3 Alternates to Whiteout PDF3 Alternates to Whiteout PDF
3 Alternates to Whiteout PDF
 
What's New in Office 2016
What's New in Office 2016What's New in Office 2016
What's New in Office 2016
 
Resume task
Resume taskResume task
Resume task
 
Word.01 compressed
Word.01 compressedWord.01 compressed
Word.01 compressed
 
Word 2010 tutorial
Word 2010 tutorialWord 2010 tutorial
Word 2010 tutorial
 

Similar a The life of era - a vb6 program

Ben Forta - Microsoft SQL Server T-SQL in 10 Minutes, Sams Teach Yourself-Sam...
Ben Forta - Microsoft SQL Server T-SQL in 10 Minutes, Sams Teach Yourself-Sam...Ben Forta - Microsoft SQL Server T-SQL in 10 Minutes, Sams Teach Yourself-Sam...
Ben Forta - Microsoft SQL Server T-SQL in 10 Minutes, Sams Teach Yourself-Sam...Edris Fedlu
 
Copia traducida de la guia
Copia traducida de la guiaCopia traducida de la guia
Copia traducida de la guiachichiplitis
 
Office 365 Productivity Tips "Summer Scuffle"
Office 365 Productivity Tips "Summer Scuffle"Office 365 Productivity Tips "Summer Scuffle"
Office 365 Productivity Tips "Summer Scuffle"Christian Buckley
 
Desktop-Publishing(E).pdf
Desktop-Publishing(E).pdfDesktop-Publishing(E).pdf
Desktop-Publishing(E).pdfFunkYou2
 
Office 365 Productivity Tips "May Mediation"
Office 365 Productivity Tips "May Mediation"Office 365 Productivity Tips "May Mediation"
Office 365 Productivity Tips "May Mediation"Christian Buckley
 
Turn Your Computer Into a Money Machine in 2018: How to make money from home ...
Turn Your Computer Into a Money Machine in 2018: How to make money from home ...Turn Your Computer Into a Money Machine in 2018: How to make money from home ...
Turn Your Computer Into a Money Machine in 2018: How to make money from home ...ashnatabassum14
 
Microsoft® office word 2003
Microsoft® office word 2003Microsoft® office word 2003
Microsoft® office word 2003bholmes
 
Ms word 2010
Ms word 2010Ms word 2010
Ms word 201047ishu
 
Ms office notes
Ms office notesMs office notes
Ms office notesB1i2l3a4l5
 
ms word presentation where we can find the ways
ms word presentation where we can find the waysms word presentation where we can find the ways
ms word presentation where we can find the wayssinghrinku615
 
How to use wordpress
How to use wordpressHow to use wordpress
How to use wordpressKyle Roberts
 
20 Office 365 Productivity Tips That You've Probably Never Used But Should sh...
20 Office 365 Productivity Tips That You've Probably Never Used But Should sh...20 Office 365 Productivity Tips That You've Probably Never Used But Should sh...
20 Office 365 Productivity Tips That You've Probably Never Used But Should sh...Thomas Duff
 
The MSLGROUP guide to facebook updates
The MSLGROUP guide to facebook updatesThe MSLGROUP guide to facebook updates
The MSLGROUP guide to facebook updatesMSLGROUPAsia
 
Windows Live Writer rebcorl bar camp 2010
Windows Live Writer rebcorl bar camp 2010Windows Live Writer rebcorl bar camp 2010
Windows Live Writer rebcorl bar camp 2010Chris Griffith
 
ms-word-2010-tutorial.pptx best way to understand
ms-word-2010-tutorial.pptx best way to understandms-word-2010-tutorial.pptx best way to understand
ms-word-2010-tutorial.pptx best way to understandMarrietaAyson
 

Similar a The life of era - a vb6 program (20)

Ben Forta - Microsoft SQL Server T-SQL in 10 Minutes, Sams Teach Yourself-Sam...
Ben Forta - Microsoft SQL Server T-SQL in 10 Minutes, Sams Teach Yourself-Sam...Ben Forta - Microsoft SQL Server T-SQL in 10 Minutes, Sams Teach Yourself-Sam...
Ben Forta - Microsoft SQL Server T-SQL in 10 Minutes, Sams Teach Yourself-Sam...
 
Copia traducida de la guia
Copia traducida de la guiaCopia traducida de la guia
Copia traducida de la guia
 
Office 365 Productivity Tips "Summer Scuffle"
Office 365 Productivity Tips "Summer Scuffle"Office 365 Productivity Tips "Summer Scuffle"
Office 365 Productivity Tips "Summer Scuffle"
 
Assignment # 02
Assignment # 02Assignment # 02
Assignment # 02
 
Desktop-Publishing(E).pdf
Desktop-Publishing(E).pdfDesktop-Publishing(E).pdf
Desktop-Publishing(E).pdf
 
What is MS Word
What is MS Word What is MS Word
What is MS Word
 
Office 365 Productivity Tips "May Mediation"
Office 365 Productivity Tips "May Mediation"Office 365 Productivity Tips "May Mediation"
Office 365 Productivity Tips "May Mediation"
 
Turn Your Computer Into a Money Machine in 2018: How to make money from home ...
Turn Your Computer Into a Money Machine in 2018: How to make money from home ...Turn Your Computer Into a Money Machine in 2018: How to make money from home ...
Turn Your Computer Into a Money Machine in 2018: How to make money from home ...
 
Microsoft® office word 2003
Microsoft® office word 2003Microsoft® office word 2003
Microsoft® office word 2003
 
01 ms office
01 ms office01 ms office
01 ms office
 
Word 2007
Word 2007Word 2007
Word 2007
 
Ms word 2010
Ms word 2010Ms word 2010
Ms word 2010
 
Ms office notes
Ms office notesMs office notes
Ms office notes
 
ms word presentation where we can find the ways
ms word presentation where we can find the waysms word presentation where we can find the ways
ms word presentation where we can find the ways
 
How to use wordpress
How to use wordpressHow to use wordpress
How to use wordpress
 
20 Office 365 Productivity Tips That You've Probably Never Used But Should sh...
20 Office 365 Productivity Tips That You've Probably Never Used But Should sh...20 Office 365 Productivity Tips That You've Probably Never Used But Should sh...
20 Office 365 Productivity Tips That You've Probably Never Used But Should sh...
 
The MSLGROUP guide to facebook updates
The MSLGROUP guide to facebook updatesThe MSLGROUP guide to facebook updates
The MSLGROUP guide to facebook updates
 
Windows Live Writer rebcorl bar camp 2010
Windows Live Writer rebcorl bar camp 2010Windows Live Writer rebcorl bar camp 2010
Windows Live Writer rebcorl bar camp 2010
 
OHYEAH.pptx
OHYEAH.pptxOHYEAH.pptx
OHYEAH.pptx
 
ms-word-2010-tutorial.pptx best way to understand
ms-word-2010-tutorial.pptx best way to understandms-word-2010-tutorial.pptx best way to understand
ms-word-2010-tutorial.pptx best way to understand
 

Más de Mark John Lado, MIT

Exploring Parts of Speech, Creating Strong Objectives, and Choosing the Right...
Exploring Parts of Speech, Creating Strong Objectives, and Choosing the Right...Exploring Parts of Speech, Creating Strong Objectives, and Choosing the Right...
Exploring Parts of Speech, Creating Strong Objectives, and Choosing the Right...Mark John Lado, MIT
 
Optimizing Embedded System Device Communication with Network Topology Design
Optimizing Embedded System Device Communication with Network Topology DesignOptimizing Embedded System Device Communication with Network Topology Design
Optimizing Embedded System Device Communication with Network Topology DesignMark John Lado, MIT
 
Embedded Systems IO Peripherals Wireless Communication.pdf
Embedded Systems IO Peripherals Wireless Communication.pdfEmbedded Systems IO Peripherals Wireless Communication.pdf
Embedded Systems IO Peripherals Wireless Communication.pdfMark John Lado, MIT
 
Implementing the 6S Lean Methodology for Streamlined Computer System Maintena...
Implementing the 6S Lean Methodology for Streamlined Computer System Maintena...Implementing the 6S Lean Methodology for Streamlined Computer System Maintena...
Implementing the 6S Lean Methodology for Streamlined Computer System Maintena...Mark John Lado, MIT
 
ISO IEC 25010 2011 Systems and Software Quality Requirements and Evaluation S...
ISO IEC 25010 2011 Systems and Software Quality Requirements and Evaluation S...ISO IEC 25010 2011 Systems and Software Quality Requirements and Evaluation S...
ISO IEC 25010 2011 Systems and Software Quality Requirements and Evaluation S...Mark John Lado, MIT
 
4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John Lado4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John LadoMark John Lado, MIT
 
3 Module - Operating Systems Configuration and Use by Mark John Lado
3 Module - Operating Systems Configuration and Use by Mark John Lado3 Module - Operating Systems Configuration and Use by Mark John Lado
3 Module - Operating Systems Configuration and Use by Mark John LadoMark John Lado, MIT
 
1 Module - Operating Systems Configuration and Use by Mark John Lado
1 Module - Operating Systems Configuration and Use by Mark John Lado1 Module - Operating Systems Configuration and Use by Mark John Lado
1 Module - Operating Systems Configuration and Use by Mark John LadoMark John Lado, MIT
 
2 Module - Operating Systems Configuration and Use by Mark John Lado
2 Module - Operating Systems Configuration and Use by Mark John Lado2 Module - Operating Systems Configuration and Use by Mark John Lado
2 Module - Operating Systems Configuration and Use by Mark John LadoMark John Lado, MIT
 
PART 1 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...
PART 1 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...PART 1 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...
PART 1 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...Mark John Lado, MIT
 
PART 2 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...
PART 2 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...PART 2 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...
PART 2 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...Mark John Lado, MIT
 
PART 3 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...
PART 3 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...PART 3 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...
PART 3 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...Mark John Lado, MIT
 
Dart Programming Language by Mark John Lado
Dart Programming Language by Mark John LadoDart Programming Language by Mark John Lado
Dart Programming Language by Mark John LadoMark John Lado, MIT
 
Computer hacking and security - Social Responsibility of IT Professional by M...
Computer hacking and security - Social Responsibility of IT Professional by M...Computer hacking and security - Social Responsibility of IT Professional by M...
Computer hacking and security - Social Responsibility of IT Professional by M...Mark John Lado, MIT
 
A WIRELESS DIGITAL PUBLIC ADDRESS WITH VOICE ALARM AND TEXT-TO-SPEECH FEATURE...
A WIRELESS DIGITAL PUBLIC ADDRESS WITH VOICE ALARM AND TEXT-TO-SPEECH FEATURE...A WIRELESS DIGITAL PUBLIC ADDRESS WITH VOICE ALARM AND TEXT-TO-SPEECH FEATURE...
A WIRELESS DIGITAL PUBLIC ADDRESS WITH VOICE ALARM AND TEXT-TO-SPEECH FEATURE...Mark John Lado, MIT
 
IT Security and Management - Semi Finals by Mark John Lado
IT Security and Management - Semi Finals by Mark John LadoIT Security and Management - Semi Finals by Mark John Lado
IT Security and Management - Semi Finals by Mark John LadoMark John Lado, MIT
 
IT Security and Management - Security Policies
IT Security and Management - Security PoliciesIT Security and Management - Security Policies
IT Security and Management - Security PoliciesMark John Lado, MIT
 
Systems Administration - MARK JOHN LADO
Systems Administration - MARK JOHN LADOSystems Administration - MARK JOHN LADO
Systems Administration - MARK JOHN LADOMark John Lado, MIT
 
IT Security and Management - Prelim Lessons by Mark John Lado
IT Security and Management - Prelim Lessons by Mark John LadoIT Security and Management - Prelim Lessons by Mark John Lado
IT Security and Management - Prelim Lessons by Mark John LadoMark John Lado, MIT
 

Más de Mark John Lado, MIT (20)

Exploring Parts of Speech, Creating Strong Objectives, and Choosing the Right...
Exploring Parts of Speech, Creating Strong Objectives, and Choosing the Right...Exploring Parts of Speech, Creating Strong Objectives, and Choosing the Right...
Exploring Parts of Speech, Creating Strong Objectives, and Choosing the Right...
 
Optimizing Embedded System Device Communication with Network Topology Design
Optimizing Embedded System Device Communication with Network Topology DesignOptimizing Embedded System Device Communication with Network Topology Design
Optimizing Embedded System Device Communication with Network Topology Design
 
Embedded Systems IO Peripherals Wireless Communication.pdf
Embedded Systems IO Peripherals Wireless Communication.pdfEmbedded Systems IO Peripherals Wireless Communication.pdf
Embedded Systems IO Peripherals Wireless Communication.pdf
 
Implementing the 6S Lean Methodology for Streamlined Computer System Maintena...
Implementing the 6S Lean Methodology for Streamlined Computer System Maintena...Implementing the 6S Lean Methodology for Streamlined Computer System Maintena...
Implementing the 6S Lean Methodology for Streamlined Computer System Maintena...
 
ISO IEC 25010 2011 Systems and Software Quality Requirements and Evaluation S...
ISO IEC 25010 2011 Systems and Software Quality Requirements and Evaluation S...ISO IEC 25010 2011 Systems and Software Quality Requirements and Evaluation S...
ISO IEC 25010 2011 Systems and Software Quality Requirements and Evaluation S...
 
4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John Lado4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John Lado
 
3 Module - Operating Systems Configuration and Use by Mark John Lado
3 Module - Operating Systems Configuration and Use by Mark John Lado3 Module - Operating Systems Configuration and Use by Mark John Lado
3 Module - Operating Systems Configuration and Use by Mark John Lado
 
1 Module - Operating Systems Configuration and Use by Mark John Lado
1 Module - Operating Systems Configuration and Use by Mark John Lado1 Module - Operating Systems Configuration and Use by Mark John Lado
1 Module - Operating Systems Configuration and Use by Mark John Lado
 
2 Module - Operating Systems Configuration and Use by Mark John Lado
2 Module - Operating Systems Configuration and Use by Mark John Lado2 Module - Operating Systems Configuration and Use by Mark John Lado
2 Module - Operating Systems Configuration and Use by Mark John Lado
 
PART 1 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...
PART 1 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...PART 1 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...
PART 1 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...
 
PART 2 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...
PART 2 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...PART 2 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...
PART 2 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...
 
PART 3 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...
PART 3 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...PART 3 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...
PART 3 CT-318-Microprocessor-Systems Lesson 3 - LED Display by Mark John Lado...
 
Dart Programming Language by Mark John Lado
Dart Programming Language by Mark John LadoDart Programming Language by Mark John Lado
Dart Programming Language by Mark John Lado
 
What is CRUD in TPS?
What is CRUD in TPS?What is CRUD in TPS?
What is CRUD in TPS?
 
Computer hacking and security - Social Responsibility of IT Professional by M...
Computer hacking and security - Social Responsibility of IT Professional by M...Computer hacking and security - Social Responsibility of IT Professional by M...
Computer hacking and security - Social Responsibility of IT Professional by M...
 
A WIRELESS DIGITAL PUBLIC ADDRESS WITH VOICE ALARM AND TEXT-TO-SPEECH FEATURE...
A WIRELESS DIGITAL PUBLIC ADDRESS WITH VOICE ALARM AND TEXT-TO-SPEECH FEATURE...A WIRELESS DIGITAL PUBLIC ADDRESS WITH VOICE ALARM AND TEXT-TO-SPEECH FEATURE...
A WIRELESS DIGITAL PUBLIC ADDRESS WITH VOICE ALARM AND TEXT-TO-SPEECH FEATURE...
 
IT Security and Management - Semi Finals by Mark John Lado
IT Security and Management - Semi Finals by Mark John LadoIT Security and Management - Semi Finals by Mark John Lado
IT Security and Management - Semi Finals by Mark John Lado
 
IT Security and Management - Security Policies
IT Security and Management - Security PoliciesIT Security and Management - Security Policies
IT Security and Management - Security Policies
 
Systems Administration - MARK JOHN LADO
Systems Administration - MARK JOHN LADOSystems Administration - MARK JOHN LADO
Systems Administration - MARK JOHN LADO
 
IT Security and Management - Prelim Lessons by Mark John Lado
IT Security and Management - Prelim Lessons by Mark John LadoIT Security and Management - Prelim Lessons by Mark John Lado
IT Security and Management - Prelim Lessons by Mark John Lado
 

Último

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 

Último (20)

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 

The life of era - a vb6 program

  • 1. The life of era Visual Basic 6.0 Create a data from Visual Basic and print an output to MS Word. Written and Designed by Mark John P. Lado No part of this book may reproduce without written consent from the author. By using this book you agree not to use this for any purpose that is illegal. You agree not to alter, modify, or cause the alteration or modification, of the book, without prior written consent from the author.
  • 2. ACKNOWLEDGEMENT First and foremost to our Almighty God for giving me strength every day for the guidance and good health, for the graces and blessings that help me in making the project possible. And most of all to my parents and guardians, thank you for showing your unconditional love and unending support financially and spiritually.
  • 3. INTRODUCTION The book contains programming codes which is written in VB6 or the Visual Basic 6. In this book, you will learn on how to create a simple program, print a data from visual basic to Microsoft Word and other basic procedures. This is a beta version only where the reader can get some ideas in performing the project. This Book contains screen shots of the actual program and their respective source code.
  • 5. Show Form To show another form from the current form you need to use command button and add it to your current form. And create another form where when you click the command button the next form will show up. Then double click the command button then write the codes and then run. Private Sub Command1_Click() Form1.Hide Form2.Show End Sub
  • 6. Print data using ms word. In this section you need to add labels, text boxes and one command button for print. Rename it.
  • 7. The label1 is for name, label2 is for age, label3 is for address. The textboxes is the same as label but not the same function. Just remove the text of textboxes. Change also the caption of command button into Print. After making the interface, open an empty Microsoft word and create your template so that when you click the print button from your vb6 you will be directed to ms word.
  • 8. In your word, go to developer’s ribbon. And add text form, same format as you did in your vb6 program.
  • 9. As you see there is and dark boxes. Right click on it and go to properties. In the bookmark rename the default text1 into w_name, do this to the age and address. And after editing save it as template and put it where your visual basic program located.
  • 10. Go back to your program. Double click the print button and write the codes. Observe properly. 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 & "mytemplate.dot") With wd1Doc .FormFields("w_name").Range = Text1.Text .FormFields("w_age").Range = Text2.Text .FormFields("w_address").Range = Text3.Text End With Set wd1 = Nothing Set wd1Doc = Nothing End Sub
  • 11. Setting references Set ms word references so that you can connect. Find the Microsoft Word 12 Object Library and check. And save your project where your template was. Test your program.