Visio Guy

Visio Discussions => Programming & Code => Topic started by: tsteele3rt on January 27, 2011, 06:18:58 PM

Title: Visio awareness of SharePoint Workspace offline cache question
Post by: tsteele3rt on January 27, 2011, 06:18:58 PM
I wanted to use a SharePoint document library to host Visio stencils. I further wanted to use SharePoint Workspace to take the stencil document library offline.

The problem I am encountering is that programatically trying to open the stencil using the VBA code (below) fails when there is no network connection. In other words, Visio does not seem to be aware of the SharePoint Workspace, local version of the stencil.

Application.Documents.OpenEx "http://192.168.7.55/Stencils/Nicely Named Stencil.vss", visOpenRO + visOpenDocked

Similar code works in Microsoft Word where the VBA "open" method pointing to a "web address" will properly open a document from the SharePoint Workspace cache.

Is there a different technique I need to use to make this work with Visio? Or will a future release of Visio be SharePoint Workspace aware?

Any help/feedback would be greatly appreciated.

Thanks,
Tom
Title: Re: Visio awareness of SharePoint Workspace offline cache question
Post by: Paul Herber on January 27, 2011, 06:43:23 PM
One problem is that spaces are not allowed in URLs, they should be encoded by using %20, i.e. http://192.168.7.55/Stencils/Nicely%20Named%20Stencil.vss
but whether Sharepoint understands that I know not.
Title: Re: Visio awareness of SharePoint Workspace offline cache question
Post by: tsteele3rt on January 27, 2011, 07:09:51 PM
At first I thought you might have been on to something, but the code does open the stencil if a network connection exists. It just doesn't seem to be aware of the local cache in a SharePoint Workspace scenario.

Thanks for responding.

Tom
Title: Re: Visio awareness of SharePoint Workspace offline cache question
Post by: Paul Herber on January 27, 2011, 07:20:04 PM
Ah, this might be more of a Sharepoint question rather than a Visio question.
Maybe Visio Guy could add a SharePoint category to this forum.
Title: Re: Visio awareness of SharePoint Workspace offline cache question
Post by: tsteele3rt on January 27, 2011, 08:44:21 PM
It definitely is SharePoint related, however, I think the core question is whether or not the Viso object model is aware of SharePoint Workspace offline cache. The main reason I tihnk it is Visio related rather than SharePoint related is that the MS Word object model (e.g. Open methods) seem to be aware of and use the offline cache without needing to do anything special in SharePoint.
Title: Re: Visio awareness of SharePoint Workspace offline cache question
Post by: tsteele3rt on February 11, 2011, 02:12:50 PM
With some further investigation, I now believe the proper terminology for my question would be something like:

When will Visio be made aware of the Office Document Cache (ODC)?

It seems that Word and the other Office applications are already aware of the ODC but Visio currently is not :-(