Skip navigation
Currently Being Moderated

How do I get Texts in a .indd file to a wordpad

Jun 16, 2013 10:51 PM

Tags: #cs5.5

I'm running CS6 & developing a pluging for that.

 

Currently I'm reading texts written in a .indd file & print them to a text file using ITextModelClass..

But I can't read texts written as TextVariable & I tried to convert them to strings using

 

ITextVariable*  textVariable,

textVariable->VariableToString(varUIDRef, temp, kTrue);

 

when i run the above code, it returns texts that are not relevant to the current .indd file.

 

when i use "kFalse" instead of kTrue it gives a runtime error & return nothing.

 

So how can i convert "TextVariable " to a readable text.

 

Thanks..

 
Replies
  • Currently Being Moderated
    Jun 17, 2013 4:54 AM   in reply to InDesignCS6

    I've moved your qusetion from the general questions area to the InDesign SDK forum where the developers congregate. You'll have a better chance of getting help here.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 17, 2013 6:57 PM   in reply to InDesignCS6

    Try,

    Get ownedList from text.

    Get name from owneditem.

    Get ITextVariable from ITextVariableTable by name.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 26, 2013 2:01 AM   in reply to InDesignCS6

    Could you get text of TextVariable?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points