OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Corel User Forums > CorelDRAW > Macros/Add-ons

Thread Tools Search this Thread Display Modes
Old 01-10-2010, 07:21
Posts: n/a
Default 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?

Reply With Quote
Old 04-10-2010, 00:12
shelbym's Avatar
shelbym shelbym is offline
Senior Member
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,782
Blog Entries: 11
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default 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
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Center a text vertically in VBA Corel Draw JFJ Macros/Add-ons 2 22-03-2011 17:12
Reading text file, one character at a time CWCN CorelDRAW/Corel DESIGNER VBA 1 16-10-2008 13:24
Need macro to number files sequentially in Corel Draw opinionsrfun CorelDRAW/Corel DESIGNER VBA 21 04-09-2007 10:35
Reading from an Excel and Putting it into Corel all_ashish CorelDRAW/Corel DESIGNER VBA 6 23-04-2007 04:33
Reading Font Properties from selected text in CD9 sherman01 CorelDRAW/Corel DESIGNER VBA 2 24-11-2004 07:59

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

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