SoftMaker.com

English-Language Support
It is currently Fri May 24, 2013 9:19 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: BasicMaker Question
PostPosted: Wed Feb 18, 2009 5:42 am 
Offline

Joined: Wed Feb 18, 2009 5:14 am
Posts: 3
I didn't see a forum for BasicMaker so I'll post my problem here. I have written a script that opens a MS word document and performs some formating on the document. One part of the script deals with a table. I have been successful with setting an inputted row height as well as shading, borders and vertical centering. However, I would like to process the last 4 columns of the table to center the text horizontally in the cells. This has proved to be a very difficult task. There is no "HorizontalAlignment" as there is "VerticalAlignment " so I've tried many other ways. One thing I tried is to use SendKeys to send a CRL-E (SendKeys "^e", True) but it fails to work on this table. I have made it work on small "test" tables, but it doesn't work here. Anyone tell me how to have a BasicMaker script horizontal center text in a table cell?


Top
 Profile  
 
 Post subject: Re: BasicMaker Question
PostPosted: Wed Feb 18, 2009 9:29 am 
Offline
SoftMaker Team
SoftMaker Team

Joined: Wed Apr 09, 2008 7:26 am
Posts: 4550
Location: Nuremberg
Hello,

you can use

---

tm.activedocument.paragraphs(x).alignment = tmAlignParagraphCenter

---

where x is the paragraph index of the pgf inside the cell, starting from the top of the document.

_________________
Sven Leßmann
SoftMaker Software GmbH


Top
 Profile  
 
 Post subject: Re: BasicMaker Question
PostPosted: Wed Feb 18, 2009 2:32 pm 
Offline

Joined: Wed Feb 18, 2009 5:14 am
Posts: 3
Thank you for the reply. I have thought of this method, but how do I retrieve the paragraph number for the location when I am in the cell? I need that to put into the paragraph alignment expression.


Top
 Profile  
 
 Post subject: Re: BasicMaker Question
PostPosted: Thu Feb 19, 2009 9:31 am 
Offline
SoftMaker Team
SoftMaker Team

Joined: Wed Apr 09, 2008 7:26 am
Posts: 4550
Location: Nuremberg
Currently there's no function for that. Unfortunately you have to try different values and see where changes appear.

_________________
Sven Leßmann
SoftMaker Software GmbH


Top
 Profile  
 
 Post subject: Re: BasicMaker Question
PostPosted: Thu Feb 19, 2009 4:13 pm 
Offline

Joined: Wed Feb 18, 2009 5:14 am
Posts: 3
That's discouraging. You might want to put that on the agenda for an update. The document has 163 paragraph marks and the table is about halfway through the document so that may be impractical. To bad a simple thing like horizontal centering of text in a cell would be so impossible to do. Two things to add to BasicMaker that would be helpful, 1) horizontal alignment for text in a table cell in TextMaker, 2) retrieval of the current paragraph index.
Thank you.


Top
 Profile  
 
 Post subject: Re: BasicMaker Question
PostPosted: Mon Feb 15, 2010 11:11 am 
Offline
SoftMaker Team
SoftMaker Team

Joined: Wed Apr 09, 2008 7:26 am
Posts: 4550
Location: Nuremberg
rdunham wrote:
That's discouraging. You might want to put that on the agenda for an update.


I've referred a feature request to our developers.

_________________
Sven Leßmann
SoftMaker Software GmbH


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group