Announcement

Collapse
No announcement yet.

mvFile_Resolve Replacement?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MLT
    replied
    David,

    We've investigated the MvFILE_NormalizePath and it's not what we need. It does normalize the path, but since we are creating pdf files, we need the absolute script and data path. I think the MvFile_Resolve provided the configured script and data root. Is there another api call that provides the absolute root script/data paths? It would seem that any of the miva file functions would need this; so how does Miva figure this out?

    For Miva Mia, we can read the registry to get this. For empressa on windows, it looks like we can read the application host configuration file. Hoping for an API approach - is there one?

    Thanks,
    -mike

    Leave a comment:


  • MLT
    replied
    Thanks David! We will give that a shot!
    -mike

    Leave a comment:


  • dcarver
    replied
    mvFile_NormalizePath should give you what you want.

    Leave a comment:


  • Brennan
    replied
    This function should give you what you need:

    https://www.mivascript.com/item/file...file_read.html

    Leave a comment:


  • MLT
    started a topic mvFile_Resolve Replacement?

    mvFile_Resolve Replacement?

    An older MvFunction extension dll for dealing with PDF files used MvFile_Resolve, which was deprecated in 5.18. Is there a replacement api function that returns a fully qualified path-file? We are reading Miva's data and script path from the registry (which is working), but I'd like to make sure there isn't a better approach using miva's api.

    Thanks!
    -mike
Working...
X