none
Word 2013 SkyDrive File Name Issue RRS feed

  • Question

  • I'm creating an add-in for Word. I need to get the file name the PC uses to access a Word document stored on the SkyDrive so I can add some directories to make my add-in work. When I use WordApp.ActiveDocument.FullName in Word 2013 I get a file name that starts with https but when I use Word 2010 and Word 2007 I get a standard win32 file name. Is there a way to get the standard win32 file name from Word 2013 so it is comparable with what previous versions of Word returned? If not, is there a function that will convert the http... file name to a win32 file name? 
    Saturday, August 31, 2013 8:37 PM

Answers

  • Hi Michael,

    What technology do you use to wring the programing, VBA or VSTO?

    According to your description, you want to get the full names of the Word files stored in SkyDrive. The full names doesn’t start with “http” and displays as a win32 file name.

    I tried to reproduce your problem. I added a .docx file into my SkyDrive and open it in my Word. But No matter with VBA or VSTO programing, the result always shows the full name started with “https” in MS Word 2007, 2010 and 2013. Since the file is stored in SkyDrive, the full name should be started with the “Https:\\” .

    Using “WordApp.ActiveDocument.FullName” can get the paths of files in you SkyDrive. The URL always shows as https://d.docs.live.net/<userid>/<foldername>/<documentname>. If you want to get the win32 path like “C:\test.doc”, I suggest you changing your goal.

    Monday, September 2, 2013 2:14 PM

All replies

  • Hi Michael,

    What technology do you use to wring the programing, VBA or VSTO?

    According to your description, you want to get the full names of the Word files stored in SkyDrive. The full names doesn’t start with “http” and displays as a win32 file name.

    I tried to reproduce your problem. I added a .docx file into my SkyDrive and open it in my Word. But No matter with VBA or VSTO programing, the result always shows the full name started with “https” in MS Word 2007, 2010 and 2013. Since the file is stored in SkyDrive, the full name should be started with the “Https:\\” .

    Using “WordApp.ActiveDocument.FullName” can get the paths of files in you SkyDrive. The URL always shows as https://d.docs.live.net/<userid>/<foldername>/<documentname>. If you want to get the win32 path like “C:\test.doc”, I suggest you changing your goal.

    Monday, September 2, 2013 2:14 PM
  • That is not my experience with Word 2007 and Word 2010 using Vista and Windows 8. I get

    C:/users/mjsmi_000/SkyDrive/<foldername>/<documentname>

    from the earlier versions. I have yet to try it on Windows 7 but will do so when I get beck where I have access to that machine later this week.

    The only difference in what I'm doing and what you did, is I'm opening a RTF document but that shouldn't make any difference.

    I can't change my goal because I need to create the subdirectories. I'll just have to go to alternative B and get access to the string I need another way. It is a bit clumsy, and I don't like to have to do it, but it will work.

    Thank you for the time you took to provide me with an answer.

    Monday, September 2, 2013 2:44 PM