Johan Nordberg

For VSTO documents and templates there's a really nice feature that allows you to cache data in the document. Is this functionality available when you create a new workbook from an addin





Re: Visual Studio Tools for Office Cache data in workbook created from addin

Cindy Meister

No, it's not. Data caching is added to document-level customizations through the VSTO Designer. It's not available otherwise.

Of course, you can access most parts of an Excel workbook through a data connection (OLE DB or Jet Engine ODBC)...






Re: Visual Studio Tools for Office Cache data in workbook created from addin

Maarten van Stam

Adding to the comments given by Cindy, she is basically right, there are however some working methods that allow you to make things work.

What you could do is create a Template with VSTO containing several cache entries to your own liking and have another addin create documents based on this template. After creating the document containing the cache entries you can access these cache objects through the ServerObject interface. When the document is then opened the data is available to work with.

I'm not sure this fits in your scenario and hope I gave you some hints here to get you going ...

-= Maarten =-






Re: Visual Studio Tools for Office Cache data in workbook created from addin

Johan Nordberg

How much data can you store in a custom document property





Re: Visual Studio Tools for Office Cache data in workbook created from addin

Cindy Meister

255 Characters. Excel doesn't appear to generate an error if you try to save more, but when you query the property only 255 characters are returned...