Access CachedData From "Client" Side

L

Lihong

Hello all,

I'm building an AddIn project for PowerPoint2007 using VSTO 2005.

I would like to store some data within the PowerPoint document as a form of
configuration, to do so I used a class (see below)

Public Class CurrentDocCachedData
' Measurement Period
' Start Date
<Cached()> _
Public Shared CachedStartDate As Date
' Start of Period
<Cached()> _
Public Shared CachedStartOfPeriod As Date
' End date
<Cached()> _
Public Shared CachedEndDate As Date
End Class

I need to access the CachedData within the PowerPoint AddIn, because those
cached data is used every time when a user creates a chart (the chart is
created by getting data directly from a SQL database).

I understand CachedData can be accessed from another application using
ServerDocument. But how can I access CachedData within the PowerPoint AddIn?
I would hope there is a easy way to access CachedData within the document?

In my case, the user does not have to have a saved document, i.e. the user
can start a "fresh" PowerPoint and generate charts as they wish without
saving it first, which means I would not necessary know the path of the
document, so I could not use:
Dim instance As New ServerDocument(documentPath)

Also, I was just been told the ServerDocument technology is not available
for Add-ins (VSTO 2005 SE). If indeed that's the case, how can I stored user
specific configuration in PowerPoint 2007? Any type of CustomXML I can use?
Like hidden XML sheet in Excel?

Any suggestions would be much appreciated!

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top