Word Processing Formats
David Thompson
dthmpsn1 at illinois.edu
Thu Jun 26 08:21:40 PDT 2008
> >> I thought this approach might work, but I'm stymied by a bug/feature.
>>> Selecting characters in a WPSO in a loop to identify their formatting
>>> eventually gives the error "Too many nested subroutiines." Where are
>>> the nested subroutines here??
>>>
>>> local CNT
>>> CNT=0
>>> loop
>>> CNT=CNT+1
>>> ActiveSuperObject "SetSelection",CNT-1,CNT
>>> until CNT=200
>>>
>>> If this worked, I could go after more data, but it won't go much over
>>> 100 characters. Getting more data drops that down to 30 or 40. Can
>>> this be fixed?
>>
>> I'm suprised by your results, I was going to suggest a technique like
>> this. I haven't found it yet, but at some point I created a procedure
>> that used this technique to convert WPSO text into formatted HTML
>> (there
>> were some limitations on what formatting would be converted, but it
>> did
>> the basics - font, size, color, bold, italic, centered, right
>> justification). I definitely had it working with over 100 characters.
>>
>> Jim Rea
>> President, ProVUE Development
>
>Thanks, Jim. Hopefully, someone will test the simple proc above, to
>see if they have the same problem. All you need to do is make a
>selection in a WPSO (to make it active) and then run the proc. I'm
>using the latest Pan5.5.
I didn't get this error when I tried it. After
trying your code the way you wrote it above, I
added some code to find out how many characters
there were, so that it could loop through them
all. It took about 2 minutes and 50 seconds to
loop through 120,388 characters.
I haven't tried to do any of the other things you
said you were doing, but as far as your test code
is concerned, I can't confirm the problem.
Dave
More information about the Qna
mailing list