Questions tagged [ipersistfile]

Implement IPersistFile when you need to read or write information from a separate file, which could be of any file format.

Implement IPersistFile when you need to read or write information from a separate file, which could be of any file format.

5 questions
2
votes
1 answer

Unable to get local copy using IPersistFile.Save(path, false) in Excel

I implement a vsto plugin for Excel. I need to get local path of the Excel document from Teams channel but Application.ActiveWorkbook.FullName contains url. I should be able to use IPersistFile.Save(path, false) and create local copy of the document…
Daniel
  • 68
  • 5
2
votes
1 answer

How can I load an IPersistFile from memory?

I'm using IPersistFile in C# to load a file, before reading it as an IFilter: IFilter filter = LoadIFilter (fileextension); IPersistFile persistFile = (filter as IPersistFile); if (persistFile != null) { persistFile.Load (fileName, 0); …
mafu
  • 31,798
  • 42
  • 154
  • 247
1
vote
0 answers

Using IPersistFile::Load multiple times with IPropertyStore

I am iterating through a bunch of .lnk files and getting information on them. For each file I do this, this is js-ctypes but is a winapi question. I removed the error checking and simplified the code: var hr_CoInitializeEx =…
Noitidart
  • 35,443
  • 37
  • 154
  • 323
0
votes
0 answers

IPersistFile Save() returns 0x80004001 E_NOTIMPL error when saving PDF documents

I'm using Delphi 2007. I'm getting 'Not implemented' exception when trying to call IPersistFile.Save() after loading document into Ole container. Problem exists for Acrobat Reader 10 and higher. The same code works for Acrobat Reader 9. I was…
Emil
  • 171
  • 1
  • 8
0
votes
1 answer

How to check a shortcut exist or not in Windows?

In my project, I need to create a shortcut for the special object. I use IPersistFile::Save to implement. Now I have a new requirement that create multiple shortcut for the special object: "objectname-shortcut", "objectname-shortcut(2)",…
yw5643
  • 189
  • 1
  • 12