View Single Post
  #2  
Old 27-11-2016, 10:54
FaneDuru FaneDuru is offline
Member
 
Join Date: May 2012
Posts: 35
Default

Solved...

Code:
using corel = Corel.Interop.VGCore;
 namespace DockerTest
 {
     public partial class DockerUI : UserControl
    {
        private corel.Application corelApp;
        public DockerUI(corel.Application app)
        {
            this.corelApp = app;
            InitializeComponent();
        }
         
        private void Button_Click(object sender, RoutedEventArgs e)
        {
              foreach (corel.Document d in corelApp.Documents) //No problem any more...
                {
                    MessageBox.Show(d.Name);
                }
    }
}

Last edited by FaneDuru; 27-11-2016 at 11:03.
Reply With Quote