.CDR file thumbnails

Because Draw serves up the wrong thumbnail in Windows Explorer* I need a macro to set the page size to all objects in the document .

Google found me some in here and I tried them but each one puts the page offset from 0,0 bottom left, even this one from Sub GDG_John( )

Option Explicit

Sub fitCanvas()

    Dim s As Shape
    Dim w As Double, h As Double
   
    Set s = ActiveSelection
    If s.Shapes.Count = 0 Then
        MsgBox "Please make a selection"
        Exit Sub
    End If
    s.GetSize w, h
   
    ActivePage.SizeHeight = h
    ActivePage.SizeWidth = w
    ActiveDocument.ReferencePoint = cdrBottomLeft
   
    s.SetPosition 0, 0

End Sub

So anyone any ideas how I can make this work correctly so that the page correctly encompasses all objects? Ideally I don't want to SelectAll first either.

TIA

* I argued the toss about this on many occasions whilst I was a beta tester but got nowhere. CorelDraw stores two thumbnails minimum, one for Page1 and one called Thumbnail. For each extra page you get an additional thumbnail. In explorer the default is Page1 thumbnail which only shows what it on the page whereas Thumbnail displays all objects on the desktop. I couldn't give a fig about the page contents for drawings that are drawn at actual life size, but there is no way of making Draw serve up the Thumbnail.jpg. I argued that if the page border was not on display then the all objects thumbnail should be shown.

Parents Reply
  • The desktop issue is not an issue to me as all objects go on Layer 1 (2,3,n) Never on the desktop layer and Draw does not move them to the desktop layer unless you have more than one physical page.

    Oh, so the Draw 2018 thumbnails do not show objects outside the drawing area even if they are on a printable layer?
    In Draw 2021, which I used for my tests, all objects are shown as long as they are on a printable layer, no matter where they are positioned.
    Have you considered upgrading?

    I think we have talked about this in the past but why not use maximum page size (45,720 x 45,720 mm)?
    That way you will most likely (even though you prefer not to show the page frame) have all objects inside the page, and drastically reduce the risk of "disappearing" objects.

    Or, and I know we have talked about this , why not use Draw the way it is designed to work best, with a specified drawing area and a visible page frame where you work and put all your objects?

Children
No Data