I am copying a file between 2 libraries which contain the same fields. So basically the source library serves as a template library. After the file is copied i update the field values in the destination library. When i open the document and look at the DIP the values are shown correctly.
However, all quickparts in the document look like they have lost their databinding and won't show the new item's field values. When I delete a QuickPart and add a quickpart for the same field it will have the correct value.
Code:
//doc is the sourceitem
var newFile = destinationList.RootFolder.Files.Add(fileName, doc.File.OpenBinary(), true);
// set field values on the item
DocumentManager.FillListItem(data, newFile.Item);