How i can find out if the page is created. and the corel draw is not in start screen like picture?
I would like to create a new page in defined size and orientation.
corelApp.CreateDocument(); // set units corelApp.ActiveDocument.Unit = corelApp.ActiveDocument.Rulers.HUnits; // set canvas size to laser table size corelApp.ActiveDocument.ActivePage.SizeHeight = ySize; corelApp.ActiveDocument.ActivePage.SizeWidth = xSize;
But this crashes when the corel is on start screenI need to find out if corel always open and ready with a plain new page.And if not i need to create this new page (ctrl + n)
Try the next way, please:
1 2 3 4
If Documents.count = 0 Then MsgBox "No document open..." Application.CreateDocument End If
You can stop the code or create a new document. You can iterate between the open documents and select the one you need, if you need a specific one...
this gives me this error.