AnsweredAssumed Answered

Issues with IVersionChangesWindow interface.

Question asked by sanjayjadhav on Dec 30, 2013
Latest reply on Jan 5, 2014 by sanjayjadhav
Hi,

I am using IVersionChangesWindow to display the version changes between two specified versions. The window for VersionChange is getting displayed, however it is not showing changes in the two versions.

Below is my code to initialize and show the window.

   public void ShowVersionChangesWindow(string sourceVersionName, string targetVersionName)         {             try             {                 UtilityMethods utilMethods = new UtilityMethods();                 IVersion sourceVersion = utilMethods.GetVersionByName(sourceVersionName);                 IVersion targetVersion = utilMethods.GetVersionByName(targetVersionName);                  IMap pMap = (Common.GlobalFunction.Instance.G_PApps.Document as IMxDocument).FocusMap;                 IActiveView pActiveView = pMap as IActiveView;                  ITrackCancel trackCancel = new CancelTrackerClass();                  IVersionChangesWindow pVersionChngesWin = new VersionChangesWindow();                 pVersionChngesWin.Initialize(Common.GlobalFunction.Instance.G_PApps.hWnd,                     pMap, sourceVersion, targetVersion, pActiveView.FullExtent, trackCancel);                  pVersionChngesWin.Visible = true;             }             catch (Exception ex)             {                               }         }


AS explained above, I am passing in the two version names which definitely have changes between them. If I use the built in Version Change window in the ArcMap, I can see the changes.

So, I assume, I might have missed some thing obvious that is causing this issue. I have checked the values of all arguments to Initialize method and they all are fine.

Any help on this issue, is appreciated.

Thanks and regards.

Outcomes