🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9239

[VB/JS] [CS2] Moving location of Table in textframe

#9239
From: RuvanFernando
Date: Thu, 07 Sep 2006 10:14
28 lines
1438 bytes
Hi

In a textframe let's say I have the text:

"Annual report 2006\n
[here comes table]\n
more text line 1.\n
more text line 2"

If I look at the textframe.Contents I can see a special character (hex(16)) located where the table is currently located within the textframe.

Now, let's say I want to move the table in between 'more text line 1' and 'more text line 2', in other words:

"Annual report 2006\n
more text line 1.\n
[here comes table]
more text line 2"

How do I do that?

If I replace the textframe.Contents the table is removed entirely (even though I maintain the special character).

I have also tried replacing characters one by one, ie: textframe.Characters(n).Contents = ch
which works, but I cannot remove characters that way.. or can I?

Thanks in advance,

Ruvan Fernando - Frontlab Ltd.
Technical Details
Message-ID: <3bc18d0b.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeed.kamp.net!newsfeed.kamp.net!news.motzarella.org!news.isoc.lu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,a7a2974c5459db7,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: RuvanFernando@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeed.kamp.net!newsfeed.kamp.net!news.motzarella.org!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: [VB/JS] [CS2] Moving location of Table in textframe
Message-ID: <3bc18d0b.-1@webcrossing.la2eafNXanI>
Date: Thu, 7 Sep 2006 03:14:14 -0700
Lines: 32
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit