Send to Word and Links

kirkgoodwinkirkgoodwin Member Posts: 12
I want to get the file location of a file generated by the "Send to Word" or "Send to Excel" buttons and populate a "Link". It doesn't look like NAV is keeping a connection to Word/Excel after launching. Anyone have ideas?

Thanks

Comments

  • p.willemse6p.willemse6 Member Posts: 216
    true, same goes for me. Docs get lost after closing...
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    It looks like it is stored in your local TEMP folder as formcaption + xml so you should be able to find the file with
    ENVIRON('TEMP') + CurrForm.CAPTION + '.XML'
    

    But I have not tested it.

    Good luck.
  • p.willemse6p.willemse6 Member Posts: 216
    but, if you do it like this, the interaction log is not in line with the linked doc's. Does not look like the word integration can be used for CRM purposes....
  • kinekine Member Posts: 12,562
    It seems that the file name is created by the application and not by NAV. I was not able to find some code which set the xml filename...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • garakgarak Member Posts: 3,263
    But you can search for the last created xml file into the Folder.
    And thats your file.
    Do you make it right, it works too!
  • kinekine Member Posts: 12,562
    Yes, you can do it in some way "around"... :-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • garakgarak Member Posts: 3,263
    the only mistake is, when an other appl. is also stored an file with the same type into the folder after navision stored the file.
    Do you make it right, it works too!
Sign In or Register to comment.