OberonPlace.com Forums

OberonPlace.com Forums (http://forum.oberonplace.com/index.php)
-   CorelDRAW/Corel DESIGNER VBA (http://forum.oberonplace.com/forumdisplay.php?f=16)
-   -   Property Bar Refresh (http://forum.oberonplace.com/showthread.php?t=251)

narcix 01-10-2003 08:50

Property Bar Refresh
When I change the size of the page with this code:


ActiveDocument.Unit = cdrTenthMicron
ActivePage.SetSize 1050000, 1480000

the Property Bar don't reflect this change. He remains at A3 size. Do you know how can I refresh the Property Bar?


Alex 01-10-2003 09:45

Re: Property Bar Refresh
3 Attachment(s)
The property bar has two modes - displaying the page size for each page individually and the size of the default document page. By default, it displays the default page size and hence when you change the size of an individual page you won't see a change in the property bar.

Please refer to the attached image for the location of the two buttons. If you select the lower one you will see the size of the current page.

Also, in order to change the default document size through VBA, use the master page referenced as ActiveDocument.Pages(0):


ActiveDocument.Pages(0).SetSize SizeX, SizeY
I hope this helps.

narcix 01-10-2003 11:37

Thank you very much.


All times are GMT -5. The time now is 02:27.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com