View Single Post
  #2  
Old 23-02-2012, 16:02
Mal
Guest
 
Posts: n/a
Default

I figured out a solutions.

Just center it to the page. Duh. This way it won't matter where it lands, I know for sure where it is once centered.

Now it works as expected.

The code I added is below.

Code:
Dim OrigSelection As new coreldraw.ShapeRange
OrigSelection = cdraw.ActiveSelectionRange
OrigSelection.AlignToPageCenter(CorelDRAW.cdrAlignType.cdrAlignLeft + CorelDRAW.cdrAlignType.cdrAlignRight + coreldraw.cdrAlignType.cdrAlignTop + CorelDRAW.cdrAlignType.cdrAlignBottom, CorelDRAW.cdrTextAlignOrigin.cdrTextAlignBoundingBox)
Reply With Quote