It seems like the ReplaceFile method no longer works as intended - or as it used to.
I have had it working an update ago (from 7.5 to 8.4) but only found out lately.
I tried the example script with a few changes. The document is created in SuperOffice but replacing the content does not happen. Has anything changed or is there another way to replace the content of created files?
Dim objApp, soDoc, soDB
Set objApp = CreateObject("SuperOffice.Application")
Set soDB = objApp.Database
Set soDoc = soDB.CreateDocument
soDoc.Contact = soDB.GetContact(90)
soDoc.Project = soDB.GetProject (1619)
soDoc.Template = soDB.GetListItem(130, 59)
soDoc.Header = "Added though SuperCOM 6"
MsgBox "Check for the added document with header Added through SuperCOM, try to open." & vbCrLf & "It fails since we have not yet created a document file."
soDoc.ReplaceFile "C:\Users\pomu\Documents\04 SuperOffice Udvikling\23 Scripts\Test1.docx", False
MsgBox "Now try to open the file"
soDoc.ReplaceFile "C:\Users\pomu\Documents\04 SuperOffice Udvikling\23 Scripts\Test2.docx", False
MsgBox "Now try to open the file, verify that the text is replaced."
Thanks in anticipation for any clarifications