TextModel Replace Text Crashing InDesign CS3

Hi,
i'm using textModel->Replace(range.Start(& ml), result.Length(), &result) to replace text.
it works great with short text but when there's alot of text, inDesign crashes..
have also tried with Delete() then Insert() but that crashes also..
does anyone know how to fix this?
thanks!

Read the programming guide about persistence and commands.
In general you should not invoke methods yourself that smell like they could change the document (or book or library or preference).
To your rescue, see docs/references/sdkdocs/html/classITextModelCmds.html
Dirk

Similar Messages

  • Fit Content To Frame Crashes InDesign CS3 !

    Hi
    iam try to fit the content to it's frame
    if(Utils<Facade::IFrameContentFacade>()->CanFitContentToFrame(UIDList(newPageItemRef)))
    ErrorCode err=Utils<Facade::IFrameContentFacade>()->FitContentToFrame((UIDList(newPageItemRef)));
    But whenever I execute this methos InDesign CS3 crashes..
    Wht could be the reason??
    thanks,
    nataraj

    You probably need to pass the content item and not the frame.
    Use IHierarchy to navigate to the first child item of
    newPageItemRef and pass that to FitContentToFrame instead.

  • New user keeps crashing indesign CS3

    So i had to add a new user for someone that needs to work on my station in the morning.  I created a new admin user for them and everything else in CS3 suite works okay but indesign. Indeisgn launches okay but when a document is launched it crashes. This is on a G5 10.4.11 OSX. anyone have any clue?

    Repairing permissions is never the answer but people give it out all the time. Even major vendors Mac support team do. Adobe doesn't use the .pkg format for their installers, therefore repair permissions will not help.
    See http://support.apple.com/kb/HT1452
    Does Disk Utility check permissions on all files?
    No. Files that aren't installed as part of an Apple-originated installer package are not listed in a receipt and therefore are not checked. For example, if you install an application using a non-Apple installer application, or by copying it from a disk image, network volume, or other disk instead of installing it via Installer, a receipt file isn't created. This is expected. Some applications are designed to be installed in one of those ways.
    Rather than repairing permissions your better bet assuming you made them an administrator is to go to your Adobe InDesign CS3 folder and slap the Get Info (CMD+I) and check under permissions. I'll assume since you made them an admin that you are also an admin. Under permissions there is a second set of pulldowns called "Group" which are probably going to say "Administrator" on the first and "Read & Write" on the second. Select the second one, set to read, set back to read and write, hit the "Apply to Subfolders" button. You'll likely be prompted for your password.
    Now open the Adobe InDesign CS3 folder, switch to List View, select all files, hit ALT+Right Arrow. Press select all once more, repeat the step above. This is because OS X is fairly poor about applying permissions.
    If you are unconfident feel free to copy your entire folder to your Desktop prior to doing this.
    I'd wager a shiny nickel you have installed a 3rd party plugin, could be as innocuous as a font manager autoactivation one. You won't see the errors from those oftentimes until a document is loaded.

  • Search Text and Replace with Graphic InDesign CS3

    I will be working with an XML file to be reformatted in InDesign.
    Is there a plug-in or a way to global replace a character (e.g. "$") present in various places in the body text with a tiff image of similar size?
    Or is it possible for a web programmer to set it up so that when I import the XML file that InDesign will ask to re-link all occurrences with a graphic that I can specify?

    Place the graphic in your InDesign document. Copy it to the clipboard.
    Use find change and fill in the find field and click the flyout for the
    change field. Select ohter> clipboard contents unformatted.
    Bob

  • Chinese text in Indesign CS3

    Hi,
    I have a computer (WXPSP3 EN) with Adobe Creative Suite CS3 (incl. InDesign) installed. Now the user has a problem with Chinese text, he never used before. He got a Word file with the translation English => Chinese and copied the text from Word to InDesing :-)
    The text is not displayed. It seems that there is a font missing, is this possible? Do I need a special InDesign font for Chinese text? If yes, which one? A link would be helpful. Thanks in advance for your help.

    I'm using chinese text, too, for the chinese version of the german/english user guides I'm creating.
    For me it never was a problem. You probably need to know this:
    1. In general, you need to install support for CJK (chinese, japanese, korean) language on Windows
        (Word may display the text without the support installed because it can embed fonts into .doc files)
    2. If you then copy text from Word to Indesign, it should be displayed correctly, whereas Indesign manages a list of substitution fonts for this situation
    If 2. does not work, you could try to replace the font in Word first by, for example, SimSun (of the chinese Windows fonts). Of course only if simplified chinese is used.
    Then copy and paste should. At least it does for me in CS2 and CS4.

  • Opening InDesign CS and CS3 documents Crash InDesign CS3

    Hi Everyone,
    When we have a CS3 document open, and we want to open a CS document simultaneously, InDesign completely crashes and will not open again until the computer is restarted. This has happened every time we have attempted this. Is this a bud with CS3??? The only work around is to close the CS3 Document and open the CS document, then re-open the CS3 document. This works, but it is a real pain, and time waster! Does anyone have any suggestions???
    thanks~
    Jarrod
    Compuer:
    Pentium 4 @ 2,4Ghz
    Win XP pro with SP2
    1.0 GB ram

    Have you updated CS3 to 5.0.2?
    When you say crashed, do you get any error message? Have you checked Task Manager to see if the application or the InDesign.exe process is still running? There are a fair number of reports that InDesign "disappears" when opening files from Explorer and this might be something similar.
    Peter

  • Overlining text in InDesign CS3

    Does anyone know if there's a way to both underline and overline text?
    I'm formatting a book for someone and in the text (not page numbers), they use roman numerals with "th" or "nd" after them. Ex: Xth, IInd I'd like to overline and underline just the X or II part so it could stand out.
    Any help anyone can give me is greatly appreciated. Thanks very much.

    Dominic,
    Thank you so very much!!! That works fine.
    (I had searched online & used INDD's help but couldn't find the answer, and I'm new to using INDD.)
    Have a great holiday!

  • CS3: Period in findWhat crashes InDesign

    This code crashes InDesign CS3:
    app.findTextPreferences.findWhat = ", .";
    app.changeTextPreferences.changeTo = ".";
    app.changeText();
    This works fine:
    app.findGrepPreferences.findWhat = ", \\.";
    app.changeGrepPreferences.changeTo = ".";
    app.changeGrep();
    Hope this helps someone.
    Walt

    Sadly, CS3 may crash on virtually any scripted search/replace. I had it crash on double quotes, tabs, and even spaces. Usually, moving the specific s&r from regular to GREP or the other way around clears it for that offending file only.
    The symptom seems connected to a specific file (as it may always fail on one and never on another), but saving as INX and re-loading never cleared it up for me. As it is quite a hassle to find the exact code it crashes on this time (with intermittant crashes on each new try), I usually shrug and do my replaces from memory. After all, it's just a few hundred of'em.

  • Opening CS2 files in InDesign CS3 - crashing

    Hi,
    I'm just wondering if anyone knows why InDesign CS2 files might crash InDesign CS3 when you try to open them (on Mac OS10.4.11)? The files still crash CS3 even when all the elements have been deleted from the file - all the text, pics, swatches, para and char styles, layers. If the file is saved as and then try to open it in CS3 it still crashes InDesign.
    Very much hoping someone might be able to shed some light....
    Thanks very much,
    Susannah

    Might InDesign CS2 have been using a third-party plug-in?
    Alistair

  • Can't paste text anymore from Acrobat Pro to Indesign CS3

    Since upgrading to Acrobat Pro, I can't copy and paste text into Indesign CS3 or 4 which is included in pdfs as NOTES. I can, however, copy and paste the regular content in the Acrobat document. After I copy the text from the notes, I go to paste it into Indesign and all I get is a blinking cursor. I can copy and paste from Acrobat 7. Any suggestions would be greatly appreciated.

    I've seen no solutions to this issue thus far. I will post my solutions to this issue here and on the other thread I found with the same problem.
    Here's how I resolved the issue. In InDesign under Preferences go to:
    Clipboard Handling>"When Pasting Text and Tables from Other Applications"/Paste: (and choose the "all information" option)
    If you have the "Text Only" option selected, this might be the issue. After checking "All Information" my issue was resolved.

  • Indesign CS3 - copy paste and export problem

    When I try to copy text in Indesign CS3 and paste it in Word 2007 - or even in notepad - nothing happens. Pasting works fine when I stay in Indesign, but not when I try to paste it in another application.
    So I tried to export text to RTF (selecting text, export to rtf, give a name als save), but no file was created.
    Pasting text from another app. into Indesign just works fine.
    Am I doing something wrong, or is this a bug?
    Thanks for any advise.
    (Windows Vista, Dell 9200, 4 MB memory)
    L.L.

    I solve this problem in windows XP using the Phaedra's first optimistic tip and worked fine to me.
    When I tested the IDcs3 in another profile it was clear that the problem is not in the program, but in permissions or another detail in the user config.
    To simplifly my life, I create a new user account "MIGUEL2" in Windows as admin powers. With this new account I "reboot" my oldest ("MIGUEL") account to user mode. Restarted windows and, with "MIGUEL2" I reset the privileges to "MIGUEL" to admin user.
    Now I can export txt and rtf files from IDcs3. ;)
    You can skip the last step and work only with the new account or just work as user, not admin...
    Really weird. Why this happened? I don't know... but I'm happy that was too simple to solve...
    Best wishes
    Miguel Leite

  • Italics and boldface not preserved in cut-and-paste from InDesign CS3

    This is using Mac InDesign CS3 5.0.1 and Mac Dreamweaver CS3
    9.0.
    When cuting-and-pasting text from InDesign CS3 to Dreamweaver
    CS3, basic text formatting such as italics and boldface are not
    preserved for me. When I select Edit, Paste Special in Dreamweaver,
    the "Text with structure plus basic formatting (bold, italic)" is
    not selectable when the clipboard holds InDesign-origin text.
    If I paste the same InDesign text into Word, the formatting
    is preserved and if I then cut-and-paste from Word into
    Dreamweaver, boldface and italics are preserved. But I don't want
    to cut-and-paste everything twice!
    Do others experience this too?
    -Tim Miller Dyck
    Editor/Publisher
    Canadian Mennonite magazine

    Apparently it is an issue with Leopard (and Illustrator)
    Workarounds:
    1) Export from InDesign as eps or PDF, or
    2) Copy paste into Photoshop as a Smartobject, and then double click the layer to edit smart object (it will open in Illustrator)
    I know, it's a pain.
    Ian

  • Text.rpln crash during textModel- Replace

    Hi All,<br /><br />I'm writing test plugin for text search and replacement for the adobe indesign 3. But I have strange problem:<br /><br />I can get access to all textmodels - ok<br />I can read raw text and perform search on it via standard c++ ansi library functions like _tcslen etc<br />I can replace text in the textmodel via ->Replace method, BUT<br /><br />Replacement of text more than several sentences at once - crashes the InDesign with the following error:<br /><br />faulting application InDesign.exe, version 5.0.2.640, faulting module TEXT.RPLN, version 5.0.2.640, fault address 0x000b7650.<br /><br />On smaller texts it works ok for the first several times and then crashes again.<br /><br />Can anybody provide solution for such problem or maybe at least has absolutely working plugin for text replacement?<br /><br />Here is the code:<br />void CheckTextModel(ITextModel* textModel, BOOL* mustEnd)<br />{<br /> WideString result;<br /> TextIterator begin(textModel, 0);<br /> for (TextIterator i=begin; i.Position()<textModel->TotalLength(); i++)<br /> {<br />  const UTF32TextChar characterCode = *i;<br />  result.Append(characterCode);<br /> }<br />// try to replace with the _same_ text without any additional actions<br /> textModel->Replace(0, textModel->TotalLength()-1, &result, nil, kFalse);<br />}

    I've tried this too:<br /><br />K2::shared_ptr<WideString> wide(new WideString(result));<br />InterfacePtr<ITextModelCmds> textModelCmds(textModel, UseDefaultIID());<br />InterfacePtr<ICommand> replaceCmd(textModelCmds->ReplaceCmd(0, textModel->TotalLength()-1, wide));<br />CmdUtils::ProcessCommand(replaceCmd);<br /><br />on Large text it crashed again :(

  • InDesign CS3 crashes when applying styles to pasted text with formatting.

    Running InDesign CS3, v. 5.0.2 on Windows XP, SP2
    InDesign is crashing whenever I do the following:
    1. Paste or place text from Microsoft Word -- with existing formatting preserved.
    2. Apply any character or paragraph style to that text.
    This happens 100% of the time when I try to recreate the error. It happens on more than one computer. It never used to happen in IDCS2. It's not a missing font issue.
    I've tried recreating the InDesign preference files, but it didn't work. (See help file at http://kb.adobe.com/selfservice/viewContent.do?externalId=kb400616&sliceId=1)
    Any suggestions would be hugely appreciated! This is slowing down my work a ton, and manually adding things like underline is killing me. If it persists, I'll have to roll back to CS2. :(

    We had exactly the same issue - but it only seemed to happen when a "Hyperlink" character style came in with the pasted text. In fact, the crash only happened when we tried to apply a paragraph style to a paragraph that had a hyperlink in it.
    Our solution: before we try to do anything else, we delete the "Hyperlink" character style. I can't guarantee that this will solve your issue, but it has worked for us (so far!) in those rare cases when we cut & paste Word text.
    We have never had this issue when we import ("Place") the Word file - that's generally a better workflow anyway.
    -Bill

  • Indesign CS3 Crashes when loading text styles

    hi all, i need some help.
    Indesign cs3 keeps crashing when I try to "load all text styles" from one indesign file to another. the file has ten styles (character & paragraph). I'm currently working on windows 7.
    thankyou for any information you can provide.

    Are you patched to 5.0.4?
    Export both files to inx, re-open, Save As. (I checked, ID will not load styles from an inx)
    Load just one style at a time to isolate a conflict.
    Last resort, Highlight text from the source doc, paste into the new doc. I should carry in the style. It only needs to be a single charatcher.

Maybe you are looking for