Community
What can be done manually via the Compare Sheets command in Design Review, I want to do programatically. Is that possible?
I've seen the example using the IAdComparator and I can get two files to work, but we need more than that. I've also tried using the aggregate example in the DWFToolkit, but the file it generates won't open.
We're not really using the feature to compare, but to overlay, print, and discard.
Thanks.
Ok, I've figured out a way of doing it. Make a copy of the first file, compare it to the second, save the file, compare to the third, save, etc. On each save, the copy keeps the comparison.
C#:
IAdMarkupEditor3 markupEditor = (IAdMarkupEditor3)axCExpressViewerControl1.MarkupEditor; IAdComparator Comparator = (IAdComparator)markupEditor.Comparator; File.Copy(list[0], @"C:\temp\temp.dwfx", true); for (int i = 1; i < list.Length; ++i) { Comparator.Compare(@"C:\temp\temp.dwfx", "Model", list[i], "Model"); markupEditor.Save(); }