![]() |
|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi, all,
Sometimes we might insert shapes outside the range of the page, I would include them when exported to image, in this case , how to calculate the image height and width value? Thanks, Lohmac |
#2
|
||||
|
||||
![]()
You can select all the shapes and get the bounding box size. This will give you the height and width.
Code:
Sub GetMySizes() Dim sr As ShapeRange Dim x As Double, y As Double, w As Double, h As Double Set sr = ActivePage.Shapes.All sr.GetBoundingBox x, y, w, h MsgBox "w: " & w & ", h: " & h End Sub |
#3
|
||||
|
||||
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Image converter | Douginala | General | 4 | 11-06-2009 10:59 |
How do I get Text Width and Height in TextOnPath | ljesus7 | CorelDRAW/Corel DESIGNER VBA | 0 | 15-03-2009 21:28 |
How do I get font width and height? | ljesus7 | CorelDRAW/Corel DESIGNER VBA | 1 | 14-03-2009 01:31 |
get the OrigSelection's width and height | zxy050 | CorelDRAW/Corel DESIGNER VBA | 2 | 28-12-2007 04:48 |
Population of Image Box | ddonnahoe | CorelDRAW/Corel DESIGNER VBA | 10 | 10-02-2004 13:20 |