
Visual Studio Tools for Office Using Visual Basic 2005 with Excel, Word, Outlook, and InfoPath
by Carter, Eric; Lippert, EricRent Book
New Book
We're Sorry
Sold Out
Used Book
We're Sorry
Sold Out
eBook
We're Sorry
Not Available
How Marketplace Works:
- This item is offered by an independent seller and not shipped from our warehouse
- Item details like edition and cover design may differ from our description; see seller's comments before ordering.
- Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
- Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
- Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.
Summary
Author Biography
Table of Contents
Figures | p. xxxi |
Tables | p. xlv |
Foreword | p. xlix |
Preface | p. liii |
Acknowledgments | p. lvii |
About the Authors | p. lix |
An Introduction to VSTO | p. 1 |
The Other Parts of This Book | p. 2 |
An Introduction to Office Programming | p. 3 |
Why Office Programming? | p. 3 |
Office Object Models | p. 6 |
Properties, Methods, and Events | p. 12 |
The Office Primary Interop Assemblies (PIAs) | p. 34 |
Conclusion | p. 43 |
Introduction to Office Solutions | p. 45 |
The Three Basic Patterns of Office Solutions | p. 45 |
Office Automation Executables | p. 49 |
Office Add-Ins | p. 60 |
Code Behind a Document | p. 65 |
Conclusion | p. 72 |
Office Programming in .NET | p. 73 |
Programming Excel | p. 75 |
Ways to Customize Excel | p. 75 |
Programming User-Defined Functions | p. 83 |
Introduction to the Excel Object Model | p. 92 |
Conclusion | p. 98 |
Working with Excel Events | p. 99 |
Events in the Excel Object Model | p. 99 |
Events in Visual Studio 2005 Tools for Office | p. 138 |
Conclusion | p. 142 |
Working with Excel Objects | p. 143 |
Working with the Application Object | p. 143 |
Working with the Workbooks Collection | p. 157 |
Working with the Workbook Object | p. 161 |
Working with the Worksheets, Charts, and Sheets Collections | p. 169 |
Working with Document Properties | p. 172 |
Working with the Windows Collections | p. 175 |
Working with the Window Object | p. 179 |
Working with the Names Collection and Name Object | p. 181 |
Working with the Worksheet Object | p. 183 |
Working with the Range Object | p. 197 |
Special Excel Issues | p. 213 |
Conclusion | p. 220 |
Programming Word | p. 223 |
Ways to Customize Word | p. 223 |
Programming Research Services | p. 229 |
Introduction to the Word Object Model | p. 237 |
Conclusion | p. 238 |
Working with Word Events | p. 243 |
Events in the Word Object Model | p. 243 |
Events in Visual Studio Tools for Office | p. 273 |
Conclusion | p. 275 |
Working with Word Objects | p. 277 |
Working with the Application Object | p. 277 |
Working with the Dialog Object | p. 299 |
Working with Windows | p. 304 |
Working with Templates | p. 307 |
Working with Documents | p. 310 |
Working with a Document | p. 315 |
Working with the Range Object | p. 335 |
Working with Bookmarks | p. 358 |
Working with Tables | p. 360 |
Conclusion | p. 362 |
Programming Outlook | p. 363 |
Ways to Customize Outlook | p. 363 |
Custom Property Pages | p. 370 |
Introduction to the Outlook Object Model | p. 378 |
Introduction to the Collaboration Data Objects | p. 382 |
Conclusion | p. 386 |
Working with Outlook Events | p. 387 |
Events in the Outlook Object Model | p. 387 |
Application-Level Events | p. 392 |
Outlook Item Events | p. 405 |
Other Events | p. 419 |
Conclusion | p. 422 |
Working with Outlook Objects | p. 423 |
Working with the Application Object | p. 423 |
Working with the Explorers and Inspectors Collections | p. 431 |
Working with the Explorer Object | p. 433 |
Working with the Inspector Object | p. 440 |
Working with the NameSpace Object | p. 443 |
Working with the MAPIFolder Object | p. 450 |
Working with the Items Collection | p. 459 |
Properties and Methods Common to Outlook Items | p. 466 |
Outlook Issues | p. 486 |
Conclusion | p. 492 |
Introduction to InfoPath | p. 493 |
What Is InfoPath? | p. 493 |
Getting Started | p. 494 |
Form Security | p. 499 |
Programming InfoPath | p. 505 |
Data Source Events | p. 509 |
Form Events, Properties, and Methods | p. 518 |
Conclusion | p. 529 |
Office Programming in VSTO | p. 531 |
The VSTO Programming Model | p. 533 |
The VSTO Programming Model | p. 533 |
VSTO Extensions to Word and Excel Objects | p. 536 |
Dynamic Controls | p. 542 |
Inspecting the Generated Code | p. 549 |
VSTO Extensions to the Word and Excel Object Models | p. 555 |
Conclusion | p. 569 |
Using Windows Forms in VSTO | p. 571 |
Introduction | p. 571 |
Adding Windows Forms Controls to Your Document | p. 577 |
Writing Code Behind a Control | p. 584 |
The Windows Forms Control Hosting Architecture | p. 585 |
Properties Merged from OLEObject or OLEControl | p. 594 |
Adding Controls at Runtime | p. 597 |
Conclusion | p. 605 |
Working with the Actions Pane | p. 607 |
Introduction to the Actions Pane | p. 607 |
Working with the ActionsPane Control | p. 613 |
Conclusion | p. 628 |
Working with Smart Tags in VSTO | p. 629 |
Introduction to Smart Tags | p. 629 |
Creating Document-Level Smart Tags with VSTO | p. 633 |
Creating Application-Level Smart Tags | p. 647 |
Conclusion | p. 672 |
VSTO Data Programming | p. 673 |
Creating a Data-Bound Customized Spreadsheet with VSTO | p. 673 |
Creating a Data-Bound Customized Word Document with VSTO | p. 681 |
Datasets, Adapters, and Sources | p. 682 |
Another Technique for Creating Data-Bound Spreadsheets | p. 691 |
Caching Data in the Data Island | p. 699 |
Advanced ADO.NET Data Binding: Looking Behind the Scenes | p. 704 |
Binding-Related Extensions to Host Items and Host Controls | p. 705 |
Conclusion | p. 712 |
Server Data Scenarios | p. 713 |
Populating a Document with Data on the Server | p. 713 |
Using ServerDocument and ASP.NET | p. 716 |
A Handy Client-Side ServerDocument Utility | p. 724 |
The ServerDocument Object Model | p. 726 |
Conclusion | p. 737 |
.NET Code Security | p. 739 |
Code-Access Security Versus Role-Based Security | p. 740 |
Code-Access Security in .NET | p. 741 |
Location, Location, Location | p. 749 |
Strong Names | p. 753 |
Publisher Certificates | p. 761 |
Trusting the Document | p. 765 |
Deploying Policy to User Machines | p. 769 |
Conclusion | p. 773 |
Deployment | p. 775 |
VSTO Prerequisites | p. 776 |
Deploying to an Intranet Shared Directory or Web Site | p. 777 |
Local Machine Deployment Without a Deployment Manifest | p. 785 |
Editing Manifests | p. 787 |
Creating Setup Packages | p. 793 |
Conclusion | p. 805 |
Advanced Office Programming | p. 807 |
Working with XML in Excel | p. 809 |
Introduction to Excel's XML Features | p. 809 |
Introduction to XML Schema Creation in Visual Studio | p. 811 |
An End-to-End Scenario | p. 816 |
Advanced XML Features in Excel | p. 826 |
Excel-Friendly XML Schemas | p. 830 |
VSTO Support for Excel Schema Mapping | p. 833 |
Conclusion | p. 849 |
Working with XML in Word | p. 851 |
Introduction to Word's XML Features | p. 851 |
An End-to-End Scenario: Creating a Schema and Mapping It into a Word Document | p. 855 |
Exporting the Mapped XML in the Document to an XML Data File | p. 869 |
Importing an XML Data File into the Mapped Document | p. 871 |
The XML Options Dialog Box | p. 877 |
VSTO Support for Word Schema Mapping | p. 880 |
VSTO Support for the WordML File Format | p. 888 |
Conclusion | p. 889 |
Developing COM Add-Ins for Word and Excel | p. 891 |
Introduction to Add-Ins | p. 891 |
Scenarios for Using Add-Ins | p. 892 |
How a COM Add-In Is Registered | p. 893 |
Implementing IDTExtensibility2 | p. 897 |
Writing a COM Add-In Using Visual Studio | p. 904 |
The Pitfalls of mscoree.dll | p. 914 |
COM Interop and regasm.exe | p. 914 |
Shimming: A Solution to the Problems with mscoree.dll | p. 919 |
Conclusion | p. 920 |
Creating Outlook Add-Ins with VSTO | p. 921 |
Moving Away from COM Add-Ins | p. 921 |
Creating an Outlook Add-In in VSTO | p. 933 |
Conclusion | p. 940 |
Bibliography | p. 941 |
Index | p. 943 |
Table of Contents provided by Ingram. All Rights Reserved. |
Excerpts
An electronic version of this book is available through VitalSource.
This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.
By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.
Digital License
You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.
More details can be found here.
A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.
Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.
Please view the compatibility matrix prior to purchase.