OberonPlace.com Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-10-2010, 08:21
neilmckenzie
Guest
 
Posts: n/a
Default reading text from a Corel Draw page to a Macro

Hi,

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?

Thanks...
Reply With Quote
  #2  
Old 04-10-2010, 01:12
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,769
Blog Entries: 9
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.
Code:
Sub FindText()
    Dim s As Shape
    
    For Each s In ActivePage.FindShapes(, cdrTextShape)
        MsgBox s.Text.Story
    Next s
End Sub
-Shelby
Reply With Quote
Reply


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 18:12
Reading text file, one character at a time CWCN CorelDRAW/Corel DESIGNER VBA 1 16-10-2008 14:24
Need macro to number files sequentially in Corel Draw opinionsrfun CorelDRAW/Corel DESIGNER VBA 21 04-09-2007 11:35
Reading from an Excel and Putting it into Corel all_ashish CorelDRAW/Corel DESIGNER VBA 6 23-04-2007 05:33
Reading Font Properties from selected text in CD9 sherman01 CorelDRAW/Corel DESIGNER VBA 2 24-11-2004 08:59


All times are GMT -5. The time now is 19:40.


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