Controlling MS Powerpoint from Notes, using LotusScript

I have a question about controlling Powerpoint.

I have successfully written some code in a Lotus Notes agent that creates slides in Powerpoint. I can insert and populate tables on these Powerpoint slides.

My question is… Does anybody know how I can move Rich Text from Notes over to the PowerPoint slides? I have some bulletted Rich Text in Notes that I want to move to a slide, and cannot figure out how.

I know I can create bullets in Powerpoint, by using text and indent levels but it does not appear that I can read the NotesRichTextItem to determine where the bullets are so I know where to put them in powerpoint. If there were a way to move the rich text directly from Notes to Powerpoint that would be optimal.

On another note. I started my solution by importing an RTF file into Powerpoint that contained the presentation heirarchy and this worked fine until I put a table in the RTF file. When Powerpoint imported the outline, it seems to skip any tables or graphics. Any ideas on this because if so, the first question I asked doesn’t really matter.

Thanks so much for your help

Kevin

Subject: Controlling MS Powerpoint from Notes, using LotusScript

Unfortunately, the native LS classes for Rich Text won’t let you get that info. You’ll either have to use the C API, a third-party tool such as the Midas Rich Text LSX which will intermediate for you in using the C API, or DXL. In any case, you are looking for the paragraph definiton (pardef) attached to each paragraph. Paragraph definitions are not stored within the paragraph, they are referenced by the paragraph, and it’s likely that all of your bulleted paragraphs reference the same pardef.

Subject: RE: Controlling MS Powerpoint from Notes, using LotusScript

Stan,

Thanks for the input.

I have not ventured into using DXL before. Do you think that what I’m trying to do would be terribly complex, parsing with DXL?

To abbreviate what I’m trying to accomplish…

NotesRichTextItem contains rich text with bullets.

I want to traverse the rich text, and know when each bullet occurs (and if it’s a 1st or 2nd level bullet, etc.) so I can direct PowerPoint.

Thanks again,

Kevin

Subject: RE: Controlling MS Powerpoint from Notes, using LotusScript

Nah, DXL isn’t hard. It IS verbose, though; you have some typing ahead of you. Because the paragraph definitions are stored outside the paragraphs, you’ll need to use a NotesDOMParser to swim through the DXL. (The DOM tree is randomly searchable, while SAX relies on sequential events.)

In each document, you will be looking for a node. Assuming there are no tables or anything, that node will contain two types of direct children: and . Your code should go through the elements as they occur, and look up the corresponding pardef for each. (You’ll find it easier to use GetElementsByTagName(“pardef”) to get all of the definitions into a collection first, then extract the data into a List for retrieval later.)

Text lives in TextNodes inside of nodes in the paragraphs. If there’s font styling information, you’ll find that is nodes at the beginning of each .

Designer Help is right on-point for a lot of this. Before you get started, though, try exporting a sample document to a file (create a NotesDXLExporter, use a document as the input, and a NotesStream as the output) and look at it in a text editor to see what you’re up against.

Subject: Controlling MS Powerpoint from Notes, using LotusScript

HI,

Could you please shatre your code of exporting fields to power point

Thnx