Announcement

Collapse
No announcement yet.

mvFile_Resolve Replacement?

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

    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

    #2
    This function should give you what you need:

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

    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      mvFile_NormalizePath should give you what you want.
      David Carver
      Miva, Inc. | Software Developer

      Comment


        #4
        Thanks David! We will give that a shot!
        -mike

        Comment


          #5
          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

          Comment

          Working...
          X