OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 02-04-2014, 07:51
hvw hvw is offline
Junior Member
Join Date: Jan 2012
Location: Ingelmunster (Belgium)
Posts: 13
Cool ActiveDocument.CreateGuide

Corel Photo-Paint X7
When I use:
Set Hulplijn = ActiveDocument.CreateGuide(1, 20, 30) as "horizontal" guideline it works but Set Hulplijn = ActiveDocument.CreateGuide(0, 20, 30) as "vertical" guideline I receive an error??

Reply With Quote
Old 07-04-2014, 10:57
shelbym's Avatar
shelbym shelbym is offline
Senior Member
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,787
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 X7 GuideLines

I have confirmed this is broken in X7, I will get it logged as a defect. As a workaround you may still use the old CorelScript calls:

Format is as follows:

GuidelineAdd(FirstPtX As Long, FirstPtY As Long, SecondPtX As Long, SecondPtY As Long, Angle As Long, Type As Long)

So Something like this should give you a vertical and horizontal guide:

CorelScript.GuidelineAdd 0, 431, 0, 503, 0, 1
CorelScript.GuidelineAdd 72, 431, 360, 431, 0, 2

Hope that helps,

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
RunMacro in the ActiveDocument pafi Macros/Add-ons 1 25-01-2010 09:45
Using ActiveDocument.SaveAs (c#) dlpfis CorelDRAW/Corel DESIGNER VBA 2 28-07-2009 08:39
How to Get a ActiveDocument Unit .... 3dvr CorelDRAW/Corel DESIGNER VBA 1 27-10-2008 11:11
Help with ActiveDocument.PublishToPDF pbisson Corel Photo-Paint VBA 5 03-01-2007 20:37
Help with ActiveDocument.PublishToPDF pbisson Macros/Add-ons 0 15-12-2006 16:27

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

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