OberonPlace.com Forums

OberonPlace.com Forums (http://forum.oberonplace.com/index.php)
-   Macros/Add-ons (http://forum.oberonplace.com/forumdisplay.php?f=21)
-   -   reading text from a Corel Draw page to a Macro (http://forum.oberonplace.com/showthread.php?t=7160)

neilmckenzie 01-10-2010 07:21

reading text from a Corel Draw page to a Macro

I have multipage coreldraw files which I would like to export to SVG. I know how to export the multipage files as seperate SVG files, but I would like to read text identifers in the top left and top right hand corners of each page to use as metadata within the SVG.

Is there a function in VBA which reads the contents of a text box or read the text from a corel draw page?


shelbym 04-10-2010 00:12

Reading Text Objects
Sure you can find the text on your page, here is a very simple example of finding the text on your page and returning each shape as a message box.

Sub FindText()
    Dim s As Shape
    For Each s In ActivePage.FindShapes(, cdrTextShape)
        MsgBox s.Text.Story
    Next s
End Sub


All times are GMT -5. The time now is 09:22.

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