I'm new in c# and in Corel. I try to use .PageChange commend. Maybe can i change page by name?. I have 22 pages in document.
CorelDRAW.Application cdr = new CorelDRAW.Application(); cdr.Visible = false; cdr.OpenDocument(@"C:\software\Corel\xxxx.cdr"); cdr.ActiveDocument.Activate(); cdr.ActiveDocument.PageChange += ??? MessageBox.Show(cdr.ActivePage.Name);
I read a little bit and now i know how too change page :]
Layer lrIT1 = cdr.ActiveDocument.Pages.Layers.Find("txt");
you can change page by index, using
cdr.ActiveDocument.Pages(32).Activate , here 32 - page number
ActiveDocument.PageChange is a user redefined routine, you can use it to track PageChange event