Microsoft Word © Automation from Microsoft Access © by Ofer Shimrat for AUGSD MS Office Versions 2000 & 2002.

Slides:



Advertisements
Similar presentations
1 VBScript Session What we learn last session?
Advertisements

Sep-05 Slide:1 VBA in Excel Walter Milner. Sep-05 Slide:2 VBA in Excel Introduction VBA = Visual Basic for Applications Enables end-user programming In.
1 Classes and Objects in Java Basics of Classes in Java.
1 Copyright © 2002 Pearson Education, Inc.. 2 Chapter 1 Introduction to Perl and CGI.
What's New in HotDocs 2006 & 2007 August 21, 2007 Capstone Practice Systems Marc Lauritsen, Bart Earle, Alan Soudakoff.
Integrated Business Applications with Databases (D3) Jenny Pedler
Campaign Overview Mailers Mailing Lists
Overview and Demonstration of declarative workflows in SharePoint using Microsoft SharePoint Designer 2007 Kevin Hughes MCT, MCITP, MCSA, MCTS, MCP, Network+,
Access Lesson 13 Programming in Access Microsoft Office 2010 Advanced Cable / Morrison 1.
Introduction to Accessing PPM Data Using Microsoft Office Amanda Oliver 2008 PPM User Conference.
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta.
Using VB with MS Applications R. Juhl, Delta College.
Techniques for Powerful Find forms. Introduction MDB, MDB, RT Parent | Child Built-In Finds Forms Queries Code Conclusion Techniques for Powerful.
AE6382 VBA - Excel l VBA is Visual Basic for Applications l The goal is to demonstrate how VBA can be used to leverage the power of Excel u VBA syntax.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
The Web Warrior Guide to Web Design Technologies
Session 13 Active Server Pages (ASP) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
1 Chapter 12 Working With Access 2000 on the Internet.
Programming with Objects: Class Libraries and Reusable Code.
Summary of text to be covered Create your own class Create and use objects of your own class Control access to object instance variables Use keyword private.
Using Visual Basic 6.0 to Create Web-Based Database Applications
Insights and Answers for IT Professionals. 「 Microsoft ® Visio 2000 視覺化管理應用」 Developing Application Solutions using Visio 2000 Shawn Tng Regional Technical.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta.
1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA.
Copyright 2007, Information Builders. Slide 1 Maintain & JavaScript: Two Great Tools that Work Great Together Mark Derwin and Mark Rawls Information Builders.
Visual Basic: An Object Oriented Approach 12 – Creating and using ActiveX objects.
1998 PI System Users’ Conference PI on the Web: A Primer for PI Users Omicron Consulting 1998 PI System Users’ Conference.
Microsoft Visual Basic 2005: Reloaded Second Edition
Lesley Bross, August 29, 2010 ArcGIS 10 add-in glossary.
| | Tel: | | Computer Training & Personal Development Microsoft Office PowerPoint 2007 Expert.
Obsydian OLE Automation Ranjit Sahota Chief Architect Obsydian Development Ranjit Sahota Chief Architect Obsydian Development.
Server Side Programming ASP1 Server Side Programming Database Integration (cont.) Internet Systems Design.
Tutorial 11 Using and Writing Visual Basic for Applications Code
Using Visual Basic 6.0 to Create Web-Based Database Applications
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 21 Fields and Forms.
Copyright 2002 Microsoft Word-Advanced Professor Robert Sandberg Charter College of Education California State University - Los Angeles.
Building COM Add-Ins Don Kiely Software Technologist Third Sector Technologies Fairbanks, Alaska
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
Chapter 1: Creating ActiveX Clients By Noppadon Kamolvilassatian Dept. of Computer Engineering, Prince of Songkla University Source: Mastering Visual Basic.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
Using Visual Basic for Applications (VBA) – Project 8.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
OLE / COM Helia / Martti Laiho Sources: MSDN Kraig Brockschmidt: Inside OLE Orfali-Harkey-Erwards: Client/Server Survival Guide.
ICONICS ActiveX ToolWorX V 6.1.
Introduction to Visual Basic.NET Chapter 2 Introduction to Controls, Events.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
History of Windows Data Sharing Carlotta Eaton Exploring Microsoft Visual Basic 5.0 To insert your company logo on this slide From the Insert Menu Select.
NetTech Solutions Microsoft Office Word 2003 Level 3 Instructor: Richard Fredrickson.
Enhancing Forms with OLE Fields, Hyperlinks, and Subforms – Project 5.
Introduction to JavaScript CS101 Introduction to Computing.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Access Project 7 Advanced Report and Form Techniques.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
1 of 16 Microsoft ® Business Solutions–Navision ® Development I – C/SIDE Introduction.
Seminarium on Component-based Software Engineering Feraaz Imami LIACS – Leiden University Fall 2005 Component Object Model (COM)
7-1 Active Server and ADO Colorado Technical University IT420 Tim Peterson.
Variables and Inheritance Part 1 Alice. Review: Properties A class defines properties for its own kind of object. When an object is created (instantiated),
BI Share Quick reference guide.
VBA - Excel VBA is Visual Basic for Applications
VBA - Excel VBA is Visual Basic for Applications
Programming the Web Using Visual Studio .NET
Innovative Technology Solutions
Chapter 6 Programming with Office 97
Microsoft Access Illustrated
(Includes setup) FAQ ON DOCUMENTS (Includes setup)
(Includes setup) FAQ ON DOCUMENTS (Includes setup)
Presentation transcript:

Microsoft Word © Automation from Microsoft Access © by Ofer Shimrat for AUGSD MS Office Versions 2000 & 2002

Introduction Automation Creation Manipulation Microsoft Word Microsoft Access Code Summary Conclusion MS Word Automation from MS Access 2 Introduction Microsoft Office Automation Environment Creating MS Word Object in MS Access Manipulating MS Word Object in MS Access Microsoft Word Environment Microsoft Access Environment Code Summary with 2 Examples Conclusion

Introduction Automation Creation Manipulation Microsoft Word Microsoft Access Code Summary Conclusion MS Word Automation from MS Access 3 History – DDE (Dynamic Data Exchange) – OLE (Object Linking & Embedding) 1.0 & 2.0 – Active X and COM (Component Object Model) Automation Concepts – Automation Client (i.e. MS Access) – Automation Server (i.e. MS Word) – Automation Type Library – Automation Object Model – Automation Object Types Microsoft Office Automation

Introduction Automation Creation Manipulation Microsoft Word Microsoft Access Code Summary Conclusion MS Word Automation from MS Access 4 Automation Creation Declare an object variable New instance started automatically Instance is invisible Can also declare & instantiate manually Dim objWord As Word.Application Set objWord = CreateObject("Word.Application") Or Dim objWord As Word.Application Set objWord = New Word.Application Note: MDB, MDE, Run Time

Introduction Automation Creation Manipulation Microsoft Word Microsoft Access Code Summary Conclusion MS Word Automation from MS Access 5 Automation Manipulation Objects have properties Properties can be manipulated objWord.Visible = True objWord.Caption = Text & Field Value objWord.Documents.Add (DocName)

Introduction Automation Creation Manipulation Microsoft Word Microsoft Access Code Summary Conclusion MS Word Automation from MS Access 6 Microsoft Word Use existing template (*.dot) Expose VBA in MS Word 40 characters per bookmark – no spaces 16,379 bookmarks per document Properties

Introduction Automation Creation Manipulation Microsoft Word Microsoft Access Code Summary Conclusion MS Word Automation from MS Access 7 Microsoft Access Somewhere begin your code with: Dim objWord As Word.Application Set objWord = CreateObject("Word.Application") Somewhere end your code with: objWord.Quit Set objWord = Nothing VBA References

Introduction Automation Creation Manipulation Microsoft Word Microsoft Access Code Summary Conclusion MS Word Automation from MS Access 8 Code Summary Code Comments Declare variables Set variables Determine conditions Handle conditions Communicate to User Automate Word Leave user to save/exit Word Return to Access

Introduction Automation Creation Manipulation Microsoft Word Microsoft Access Code Summary Conclusion MS Word Automation from MS Access 9 Conclusion Use it when Access reports wont do Programmatically control MS Office Useful in many ad hoc situations Ofer Shimrat (858)