Publisher 2003: Creating and Managing Linked Text Boxes

(Note:   This is the third in a series of entries that aim to introduce experienced programmers to the Publisher object model. The first entry covered creating Web pages programmatically. You can read it here. The second entry covered working with wizards and templates. You can read it here.) While the way you work with text in…

1

Working with Publisher Wizards and Templates

Note:   This is the second in a series of entries that aim to introduce experienced programmers to the Publisher object model. The first entry covered creating Web pages programmatically. You can read it here. Publisher has a different concept of templates and wizards than other Office programs, such as Word. In Publisher, both terms refer to…

1

Publisher 2003: Using the NewDocument and DocumentOpen Events

I got an email the other day from a user who asked if the NewDocument event in Publisher actually worked. It does, but it is a little more complicated than you’d think. Read on. To enable event handling within a typical application, you create a new class module, and declare an Application object with events:…

1

Creating Web Pages with the Publisher Object Model

You know, sometimes it’s the obvious things you miss. I was meeting a few days ago with the programmer-writer who is taking over writing Publisher developer help for the next release. I was giving him a guided tour of the Publisher object model, and I thought “you know, this should really be written down somewhere.”…

1

PowerPoint: Launching Other Applications with Command Line Switches

Here’s something I meant to mention a while back: did you know that when you set a shape’s action setting to launch a program, you can pass command line switches to that program? This is something I stumbled across, and there doesn’t seem to be any mention of it in the PowerPoint 2003 VBA Reference,…

0

PowerPoint: Using Tags to Store Custom Data

So, after blogging several times about the Tags functionality in Publisher, I finally took a look in the PowerPoint object model, and guess what I found? However, the tags functionality is implemented a little differently in PowerPoint than in Publisher, so it deserves some discussion. To review: Tags are, in essence, generic holding bins where…

4

Publisher: Formatting Text Across Multiple Text Boxes, or in the Overflow Buffer

Here’s an interesting quirk in Publisher’s object model. It’s by design, and it makes sense if you think about it. But it may lead to some unexpected results if you don’t take it into account. I didn’t, and it did, so I thought I’d point it out. First, start out with a text box that’s…

1

Publisher: Creating a Linked Picture from an Embedded Picture (Part 2 of 2)

Read Part 1 here. In the last entry, I showed you how to write a function that creates a separate .jpg file from a picture embedded in a publication. Now, let’s finish the job by replacing the embedded picture with a picture linked to the new .jpg file. Below is an example of a procedure…

1

Publisher: Creating a Linked Picture from an Embedded Picture (Part 1 of 2)

A lot of the time, entries that I post here end up inspiring me so that I expand them into articles that end up on MSDN. This time, I’m doing things the other way around: the next two posts are going to be excerpts from an article I actually published about 8 months ago. Here’s…

1

Publisher: Using Tags to Store Custom Properties (Part 3)

First, I discussed the tags collection, which you can use as generic holding bins for whatever data you want to persists within your publications, pages, or shapes. Next, I showed you a few examples using document and page-level tags. So now, to round things out, let’s look at a short example using tags stored in…

2