Book a Demo

Author Topic: what is a SSRunPr tag  (Read 6800 times)

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
what is a SSRunPr tag
« on: June 16, 2015, 12:42:19 pm »


Does anyone know what are these SSRunPR tags in EA generated documents?
Why are they there, and how do I stop them being generated?
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: what is a SSRunPr tag
« Reply #1 on: June 16, 2015, 03:55:38 pm »
Nope, never seen such weird tags in my generated documents.

Geert

reherz

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: what is a SSRunPr tag
« Reply #2 on: October 20, 2016, 11:20:17 pm »
I have the same problem with the SSRunPr - tags! Does anyone else has these tags too?

@skiwi did you find a solution?

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: what is a SSRunPr tag
« Reply #3 on: October 21, 2016, 12:33:05 am »
IIRC, they're to do with hyperlinks. You can get rid of them with the following snippet.

Code: (VBScript) [Select]
sub PostProcess(fileName)
dim wordApp
dim wordStarted
on error resume next
set wordApp = GetObject(, "Word.Application")
if (err.Number = 0) then
wordStarted = false
else
set wordApp = CreateObject("Word.Application")
wordApp.Visible = False
wordStarted = true
end if
dim doc
set doc = wordApp.Documents.Open(fileName)
dim xmlNode
dim i, count
count = doc.XMLNodes.Count
for i = count to 1 step -1
set xmlNode = doc.XMLNodes.Item(i)
if (xmlNode.BaseName = "SSRunPr") then
xmlNode.Delete()
end if
next
doc.Close(-1)
if (wordStarted) then
wordApp.Quit()
end if
end sub

If you're using a script to generate the document, and this issue is a good reason to, you can integrate the fix into the same script.

HTH,


/Uffe
My theories are always correct, just apply them to the right reality.