Large multiline text with placeholders?

I am tasked with creating a PDF that has a dropdown control named "Company_Name". The values in the dropdown are:
Companmy Alpha Blah
Comp Baaa
Industrial CompanyXYZ
Comp U
Underneath this dropdown control there needs to be a textbox with several placeholders and the text has to wrap neatly so it can be printed correctly. For example here is the text wht the placeholders:
{Company_Name}Lorem ipsum dolor sit amet, {Company_Name}consectetur adipiscing elit. Duis ultricies tortor sit amet molestie congue. Vivamus faucibus, purus at varius placerat, augue eros condimentum enim, {Company_Name} eget feugiat.
Is it possible to do this so the text will wrap nicely no matter how short or long the Company_Name value is?  Will Acrobat Pro do it, or will Adobe InDesign do it?
Thanks for advice!

It's possible to do it using a script that inserts the selected company name into the pre-defined string and then populates the text field with it. That string can contain line-breaks to make sure that it breaks where it needs to. This needs to be done in Acrobat, not in InDesign.

Similar Messages

  • SAP Texts with Placeholders

    Hi All,
    we have requirement in which we will be using SAP Texts as templates.
    The SAP Text body will have certain placeholders, which has to be filled at the runtime with data. So that the SAP text acts as a template and the data can be filled at runtime.
    For Eg: The sap text may contain something like
    "Request &Request_number& has been changed by &User_name&."
    The above string should be stored as sap text and the placeholders &Request_number& and &User_name& has to be replaced by supplied data.
    Is there any standard way to do that with sap texts?
    or I have to manually search throught the string and find place holders and replace them?
    Please advice.
    Thanks,
    Anand

    hi,
    I think the FM 'TEXT_SYMBOL_REPLACE' will solve your problem.
    Check below sample prog.
    Here is the sample Long Text/standard text which i used.
    *     Hi &v_lname& &v_fname&
    *       As per your records,you still need to pay the Amt towards Home loan.
           Plz pay at the earliest.
    *     Regards
         Credit Team
    Here  v_lname and v_fname are the place holders.
    The below is the program.
    data:  gt_line      TYPE STANDARD TABLE OF tline,
           gs_head      TYPE thead,
           gs_line      TYPE  tline.
    data : v_fname type char10,
           v_lname type char10.
          CALL FUNCTION 'READ_TEXT'
            EXPORTING
            CLIENT                        = SY-MANDT
              ID                            = 'LTXT'
              LANGUAGE                      = sy-langu
              NAME                          = 'WD00000000000000012516LTXT'
              OBJECT                        = 'WCDOC'
            ARCHIVE_HANDLE                = 0
            LOCAL_CAT                     = ' '
           IMPORTING
              HEADER                        = gs_head
            TABLES
              LINES                         = gt_line
          EXCEPTIONS
            ID                            = 1
            LANGUAGE                      = 2
            NAME                          = 3
            NOT_FOUND                     = 4
            OBJECT                        = 5
            REFERENCE_CHECK               = 6
            WRONG_ACCESS_TO_ARCHIVE       = 7
            OTHERS                        = 8
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          v_fname = 'Lokesh'.
          v_lname = 'Reddy'.
      CALL FUNCTION 'TEXT_SYMBOL_REPLACE'
            EXPORTING
              ENDLINE                = 99999
              HEADER                 = gs_head
            INIT                   = ' '
            OPTION_DIALOG          = ' '
              PROGRAM                = 'ZLOK_TEST_FM_SAVE_TEXT'
              REPLACE_PROGRAM        = 'X'
              REPLACE_STANDARD       = ' '
              REPLACE_SYSTEM         = ' '
              REPLACE_TEXT           = ' '
              STARTLINE              = 1
          IMPORTING
            CHANGED                =
            NEWHEADER              =
            TABLES
              LINES                  = gt_line
    loop at gt_line into gs_line.
        write:/ gs_line-TDFORMAT,gs_line-TDLINE.
    endloop.
    *****End of the program..
    Here you can keep the FM 'TEXT_SYMBOL_REPLACE' in a desired internal table loop or select/end select statements to get the values of v_fname and v_lname dynamically. 
    Plz..acknowledge ..if this suffice ur requirement or not.
    Cheers
    Lokesh

  • Problem with multiline text item return on query

    Hi there, I am a beginner in ORACLE, here when i write a query i engaged a weird problem,
    LOOP
    FETCH CSR_ODR2 INTO :ORDER_RECORD.OREDER_RECORD_NO,:ORDER_RECORD.BILL_NO,:ORDER_RECORD.ACTUALO_WEIGHT,:ORDER_RECORD.OPERATION,:ORDER_RECORD.PLACE,:ORDER_RECORD.TRANSACTION_DATE,:ORDER_RECORD.ORDER_NO;
    EXIT WHEN CSR_ODR2%NOTFOUND;
    END LOOP;
    this is the cursor version, I also tried SELECT statement, but have trouble about return more than 1 row.
    :Order_Record is a detailed-form with multiline text items,while execute this cursor, it always rewrite the 1st line and wont go to 2nd line, I wanna get some help about how to display different records in different line in a text item.
    btw, i tried next_record,next_item,next_field, but none of them works, the query is based on the record i filled on the master form, and show related record in detailed-form
    Kyle
    Edited by: user12234866 on 13-Jun-2010 00:32

    DECLARE
    CURSOR CSR_ORDER IS
    SELECT T.ORDER_DATE,T.WEIGHT,T.CUSTOMER,T.DRIVER_NO,T.INVOICE_NO,T.LICENSE_NR_TRUCK,T.PRODUCT,T.PRICE_PER_TON,T.TRAILER_NO
    FROM TRANSPORT_ORDER T
    WHERE T.ORDER_NO=:TRANSPORT_ORDER.ORDER_NO;
    BEGIN
    OPEN CSR_ORDER;
    LOOP
    FETCH CSR_ORDER INTO :TRANSPORT_ORDER.ORDER_DATE,:TRANSPORT_ORDER.WEIGHT,:TRANSPORT_ORDER.CUSTOMER,:TRANSPORT_ORDER.DRIVER_NO,:TRANSPORT_ORDER.INVOICE_NO,:TRANSPORT_ORDER.LICENSE_NR_TRUCK,:TRANSPORT_ORDER.PRODUCT,:TRANSPORT_ORDER.PRICE_PER_TON,:TRANSPORT_ORDER.TRAILER_NO;
    EXIT WHEN CSR_ORDER%NOTFOUND;
    END LOOP;
    END;
    DECLARE
    CURSOR CSR_ODR2 IS
    SELECT O.OREDER_RECORD_NO,O.BILL_NO,O.ACTUALO_WEIGHT,O.OPERATION,O.PLACE,O.TRANSACTION_DATE,O.ORDER_NO
    FROM ORDER_RECORD O
    WHERE O.ORDER_NO=:TRANSPORT_ORDER.ORDER_NO
    ORDER BY OREDER_RECORD_NO asc;
    BEGIN
    OPEN CSR_ODR2;
    GO_BLOCK(':ORDER_RECORD');
    LOOP
    FETCH CSR_ODR2 INTO :ORDER_RECORD.OREDER_RECORD_NO,:ORDER_RECORD.BILL_NO,:ORDER_RECORD.ACTUALO_WEIGHT,:ORDER_RECORD.OPERATION,:ORDER_RECORD.PLACE,:ORDER_RECORD.TRANSACTION_DATE,:ORDER_RECORD.ORDER_NO;
    EXIT WHEN CSR_ODR2%NOTFOUND;
    END LOOP;
    END;
    thats the stuff i wrote here to execute

  • Automatically Slicing Large TIFF Files with Photoshop 5.1

    I am trying to automatically slice a very large TIFF file (800 MB) into 28 equally-sized rectangles using Actions (it is a scanned image of 28 scientific slides and reducing the resolution is not an option). My goal is to start with the TIFF file and end up with a folder that contains 28 separate files. I'll do this on many such TIFF files, so it needs to be coded into an action.
    So far I have an action that creates guides in a grid pattern and then converts the guides to 28 individual rectangular user slices that together cover the entire screen. Unfortunately the file is far too large  to use with the "Save for Web & Devices" tool and I also can't export to TIFF from that tool. So I made an action that individually selects each slice (using the slice select tool), copies it, creates a new file, pastes the image, saves it as a flattened, non-compressed TIFF into a new folder, then closes the file. When I try to run this I get the following error:
    The command "Select" is not currently available
              -- Continue --       -- Stop --
    If I press Continue the action is not carried out. If I press Stop and select the slice manually there is no problem (but then my action will not be fully automated). The image is in 8-bit RGB mode, and I've also tried converting the locked Background layer into a standard layer. I don't see any reason why the select command shouldn't be available! There is only one layer and there are user slices available for selection. I tried separating the slicing and select/import jobs into 2 different actions but it still didn't work.
    Any help you can give me would be greatly appreciated! Thank you!
    Photoshop CS 5.1 Extended, v. 12.1 x64 - I have installed the recent update
    Windows 7 64-bit
    6 GB RAM

    This might do it...
    It will save the individual files in a folder called filechop off the files path.
    #target photoshop
    function main(){
    if(!documents.length) return;
    var dlg=
    "dialog{text:'Script Interface',bounds:[100,100,380,290],"+
    "panel0:Panel{bounds:[10,10,270,180] , text:'' ,properties:{borderStyle:'etched',su1PanelCoordinates:true},"+
    "title:StaticText{bounds:[60,10,220,40] , text:'File Chop' ,properties:{scrolling:undefined,multiline:undefined}},"+
    "panel1:Panel{bounds:[10,40,250,130] , text:'' ,properties:{borderStyle:'etched',su1PanelCoordinates:true},"+
    "statictext1:StaticText{bounds:[10,10,111,30] , text:'Accross' ,properties:{scrolling:undefined,multiline:undefined}},"+
    "statictext2:StaticText{bounds:[140,10,230,27] , text:'Down' ,properties:{scrolling:undefined,multiline:undefined}},"+
    "across:DropDownList{bounds:[10,30,100,50]},"+
    "down:DropDownList{bounds:[140,30,230,50]},"+
    "saveFiles:Checkbox{bounds:[10,60,230,80] , text:'Save and Close new files?'}},"+
    "button0:Button{bounds:[10,140,110,160] , text:'Ok' },"+
    "button1:Button{bounds:[150,140,250,160] , text:'Cancel' }}};"
    var win = new Window(dlg,'File Chop');
    if(version.substr(0,version.indexOf('.'))>9){
    win.panel0.title.graphics.font = ScriptUI.newFont("Georgia","BOLD",20);
    g = win.graphics;
    var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [1.00, 1.00, 1.00, 1]);
    g.backgroundColor = myBrush;
    var myPen =g.newPen (g.PenType.SOLID_COLOR, [1.00, 0.00, 0.00, 1],lineWidth=1);
    win.center();
      for(var i=1;i<31;i++){
       win.panel0.panel1.across.add ('item', i);    
       win.panel0.panel1.down.add ('item', i);    
    win.panel0.panel1.across.selection=0;
    win.panel0.panel1.down.selection=0;
    var done = false;
        while (!done) {
          var x = win.show();
          if (x == 0 || x == 2) {
            win.canceled = true;
            done = true;
          } else if (x == 1) {
            done = true;
    if(!documents.length)return;
    var startRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.PIXELS;
    doc = app.activeDocument;
    app.displayDialogs = DialogModes.NO;
    doc.flatten();
    var tilesAcross = parseInt(win.panel0.panel1.across.selection.index)+1;
    var tilesDown =parseInt(win.panel0.panel1.down.selection.index)+1;
    var tileWidth = parseInt(doc.width/tilesAcross);
    var tileHeight = parseInt(doc.height/tilesDown);
    var SaveFiles = win.panel0.panel1.saveFiles.value;
    ProcessFiles(tilesDown,tilesAcross,tileWidth,tileHeight,SaveFiles);
    app.preferences.rulerUnits = startRulerUnits;     
    main();
    function ProcessFiles(Down,Across,offsetX,offsetY,SaveFiles){
    try{
    var newName = activeDocument.name.match(/(.*)\.[^\.]+$/)[1];
    }catch(e){var newName="UntitledChop"}
    var Path='';
    try{
    Path =  activeDocument.path;
    }catch(e){Path = "~/Desktop";}
    if(SaveFiles){
    Path = Folder(decodeURI(Path) +"/FileChop");
    if(!Path.exists) Path.create();
    TLX = 0; TLY = 0; TRX = offsetX; TRY = 0;
    BRX = offsetX; BRY = offsetY; BLX = 0; BLY = offsetY;
    for(var a = 0; a < Down; a++){
      for(var i = 0;i <Across; i++){
                var NewFileName = newName +"#"+a+"-"+i;
       app.activeDocument.duplicate (NewFileName, true);
        activeDocument.selection.select([[TLX,TLY],[TRX,TRY],[BRX,BRY],[BLX,BLY]], SelectionType.REPLACE, 0, false);
        executeAction( charIDToTypeID( "Crop" ), undefined, DialogModes.NO );
        app.activeDocument.selection.deselect();
    if(SaveFiles){
    var saveFile = File(decodeURI(Path+"/"+NewFileName+".jpg"));
    SaveJPEG(saveFile, 10);
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
        activeDocument = documents[0];
    TLX = offsetX * (i+1) ; TRX  = TLX + offsetX; BRX = TRX; BLX = TLX; 
    TLX = 0; TLY = offsetY * (a +1); TRX = offsetX; TRY = offsetY * (a +1);
    BRX = offsetX; BRY = TRY + offsetY; BLX = 0; BLY = (offsetY * (a +1)+offsetY);
    if(SaveFiles){
    Path.execute()
    function SaveJPEG(saveFile, jpegQuality){
    jpgSaveOptions = new JPEGSaveOptions();
    jpgSaveOptions.embedColorProfile = true;
    jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
    jpgSaveOptions.matte = MatteType.NONE;
    jpgSaveOptions.quality = jpegQuality;
    activeDocument.saveAs(saveFile, jpgSaveOptions, true,Extension.LOWERCASE);

  • How to Shift Multiline Text in a Picture ??

    Hi All,
    I have written a MultiLine Text in a Picture using "Draw Text at Point" Function. How can I shift (right and left) my first line of the text in the picture without shifting other text lines in the picture ???
    Please help it is very IMPORTANT.
    I am using LabVIEW 2011.
    Thank you so much.

    You can use the Picture to Pixmap VI followed by the Unflatten Pixmap VI to convert the picture to a 2D array. You can now use the array primitives (Array Subset, Replace Array Subset) to move the pixels to where you want them and then convert back to the picture.
    The other alternative, if the picture is newly created, is to just recreate it with the new values.
    Try to take over the world!

  • SharePoint 2010 list view - How to filter on a multiline text box field - the view filter does not allow me to select it.

    Hi there,
    Does someone know in SharePoint 2010 list view - How to filter on a multiline text box field - the view filter does not allow me to select it.
    Thanks,

    Hi,
    Per my knowledge,
    it is by design that the data type multiple lines of text can only use “contains” and “begins with” operators.
    You can also filter the list view using SharePoint Designer,
    Open your list AllItem.aspx page in SPD ->click “Filter” > in “Field Name” select your multipe line of text field, in “Comparison” will displayed four choices.
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • SharePoint 2010 List - Append Changes to Existing Text - multiline text fields being duplicated

    Hello!
    SharePoint 2010 - I have this same problem for all Lists that use the combination of 1) Multi-line text column; 2) Column is set to "Append Changes to existing text"; 3) Text choice = Plain Text or Rich Text or Enhanced Rich Text. 4) List item is modified
    in datasheet view
    Each time a list item is modified in datasheet view, if the multi-line text column is left blank it will have it's previous value duplicated. For example - If I'm updating a list item in Datasheet View and updating a column other than this column
    I described above, each time I make an update to the list item the previous value/comment left by someone else in that column will be duplicated with my name attached along with the date.
    Why is SharePoint duplicating the contents of this field??
    Example:
    Comments (multiline text column): Comment 1
    Miguel Patey 10/3/2011 2:12 PM
    Comments (multiline text column): Comment 1
    Miguel Patey 10/3/2011 2:10 PM
    Comments (multiline text column): Comment 1
    George Pully 10/1/2011 8:45 AM
    In my testing I noticed that a list item that is modified in standard view (not datasheet view) will not duplicate the value of the Comments field if left empty. Once the item has been modified in standard view I can make changes to that list item in datasheet
    view and the Comments field won't be duplicated...
    Any ideas?
    Michael Reinhardt

    I think I have identified exactly when/how this happens. It was happening to us, I found this post, and then I did further testing based on your note that it only happens when using datasheet. Thanks so much for that lead!
    In my example below, "status note" is the column where we use MLT w/ append comments. Here's what I found in my testing:
    If I used datasheet to edit an item, and the LAST edit made to that item did not include a status note, then no duplicate status note was created when I made my edit.
    IF, however, the last edit made to the item DID include a status note, my edit (no matter WHAT I was changing, no matter if the view included the status note column or not) created a duplicate of the previous status note.
    Try it out and see if that works the same for you. You can even tell easily if you show the column in the datasheet view. If, when you go to make your edit you see content in that column, you know your edit will include a duplicate of that MLT content. If
    you see it is blank (meaning that last time someone made an edit they did not change that MLT column), your edit should be fine and create no duplicate.
    PS- editing in the editform creates no problem whatsoever. The problem definitely seems specific to the way Datasheet handles edits.

  • Using speak text with pages

    Trying to use speak text with pages.
    Keyboard pops up all the time
    Blocking the speak now option.
    Anyone have a way around this?
    iPad 1, large file.

    Mine does show up, but not on the right like in other apps, but on the far left of the menu.
    Jason

  • [svn:fx-4.x] 15186: In RichEditableText handlePasteOperation() if there are no constraints (maxChars, restrict or displayAsPassword) and multiline text is allowed we can do an immediate return before the text is extracted from the text flow .

    Revision: 15186
    Revision: 15186
    Author:   [email protected]
    Date:     2010-03-31 16:42:19 -0700 (Wed, 31 Mar 2010)
    Log Message:
    In RichEditableText handlePasteOperation() if there are no constraints (maxChars, restrict or displayAsPassword) and multiline text is allowed we can do an immediate return before the text is extracted from the text flow.  This should be the typically case when pasting large amounts of text.
    QE notes:
    Doc notes: None
    Bugs: partial fix for SDK-25793
    Reviewed By: Gordon
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-25793
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/components/RichEditableText.as

    Step by step, how did you arrive at seeing this agreement?

  • Working with placeholders and templates in 10gR4

    I am new to 10gR4 features. Can someone help me in working with placeholders and templates in 10gR4. Is there a document available on that?
    This is what is did. I created a primary page which contains a contribution region for list of articles(dynamic list fragment). Next, I created a secondary page (hcsp file) which is designed to create/update new artcicles. I also added a placeholder before the contribution region for this article by name ArticleDetail.
    I was able to add new articles and work with them as usual like in 10gR3.
    But when I tried to access the contents of a particular article using wcm_place_holder service I am not able to see any contents.
    This is the url for the request
    http://hd-pratapm/ucm/idcplg?IdcService=WCM_PLACEHOLDER&siteId=TestSite&dataFileDocName=TESTCONTENTFILE&templateDocName=ArticleDetail
    where the TESTCONTENTFILE is the content id of the article data file and ArticleDetail is the name of the placeholder placed above article contribution region.
    I tried changing the value of templateDocName to content id of the article (TESTCONTENTFILE) and also tried the content id of eondary page file for article, but the same result. I am not able to see anything on the screen.
    Also tried the same with above values with placeholderDefinitionDocName instead of templateDocName parameter but no good.
    Anything wrong I am doing here?
    Regards,
    Pratap

    I tried something different and I am getting the response but the content is not html.
    This is what I tried
    http://hd-pratapm/ucm/idcplg?IdcService=WCM_PLACEHOLDER&dataFileDocName=TESTARTICLE&templateDocName=TESTARTICLE
    and I got the response which is xml data. I think it is the contributed data file for TESTARTICLE.
    What we are looking for is the html text for presenting the article directly on external sites. The documentation for WCM_PLACEHOLDER says that it should get html directly. I am not able to get it.
    This is the snippet of code of articleDetails.hcsp secondary page
    ================================================================================================
    <!--SS_BEGIN_SNIPPET(fragment1,2)--><!--$ssFragmentInstanceId="fragment1", ssIncludeXml("SS_FRAGMENTS_PLAIN", "fragments/fragment[@id='NavMultiHorizontal']/snippets/snippet[@id='2']/text()")--><!--SS_END_SNIPPET(fragment1,2)-->
    </p>
    <p> </p>
    <p><!--$wcmPlaceholder("QtelArticleDetail")--></p>
    <p>
    <!--SS_BEGIN_OPENREGIONMARKER(region1)--><!--$SS_REGIONID="region1"--><!--$include ss_open_region_definition --><!--SS_END_OPENREGIONMARKER(region1)-->
      <!--SS_BEGIN_ELEMENT(region1_element6)--><!--$ssIncludeXml(SS_DATAFILE,region1_element6 & "/node()")--><!--SS_END_ELEMENT(region1_element6)-->  </p>
    <p><!--SS_BEGIN_ELEMENT(region1_element2)--><!--$ssIncludeXml(SS_DATAFILE,region1_element2 & "/node()")--><!--SS_END_ELEMENT(region1_element2)--> </p>
    <p><!--SS_BEGIN_ELEMENT(region1_element3)--><!--$ssIncludeXml(SS_DATAFILE,region1_element3 & "/node()")--><!--SS_END_ELEMENT(region1_element3)--></p>
    <p><!--SS_BEGIN_ELEMENT(region1_element4)--><!--$ssIncludeXml(SS_DATAFILE,region1_element4 & "/node()")--><!--SS_END_ELEMENT(region1_element4)--></p>
    <p><!--SS_BEGIN_ELEMENT(region1_element5)--><!--$ssIncludeXml(SS_DATAFILE,region1_element5 & "/node()")--><!--SS_END_ELEMENT(region1_element5)-->
    <!--SS_BEGIN_CLOSEREGIONMARKER(region1)--><!--$include ss_close_region_definition --><!--SS_END_CLOSEREGIONMARKER(region1)-->
    ================================================================================================
    Can you please suggest what else needs to be done in order to get html repsonse from WCM_PLACEHOLDER service.
    Regards,
    Pratap

  • Search .docx and replace text with image

    I've got a directory containing a series of images. The images will always be the same name and I need to insert them into placeholders in a Word document which will be a template. I thought of using the image names as placeholders, opening the document
    and searching for the image name, replacing it by inserting the image, and doing so for each image in the directory.
    $file is the name of the image in the directory and it loops through them okay.
    foreach($file in Get-ChildItem $savepath -Filter *.jpg)
            # search word doc and replace selected text with image ($file)    
    Also inserting the image seems simple enough from a TechNet article I found, but I've got no idea how to open the Word document and do a search and replace. I found a few articles related to the subject but I couldn't get them to work when I tried to adapt
    them.
    Any help is appreciated. Thanks in advance.

    This 'might' be possible, but I'm having a hard time finding good references to the com object capabilities for inserting an image into a word document.  Creating new, converting format, that sort of thing is straightforward.
    I'd do a search on "powershell word comobject" and variations of insert image update edit, etc.  Or maybe someone else with more experience/knowledge has a magic bullet for you.  Once you get some info on doing it with powershell, expand
    your search by omitting the powershell keyword, there's gotta be some solid documentation for the comobject somwhere, but it will probably be a bit complex.
    You can also:
    $word = new-object -comobject word.application
    $doc = $word.documents.add("<path to word document>"
    and get-member to your heart's content, but finding references and/or documentation might be easier.  
    Good luck!
    Edit:  This could help, but really doesn't give much insight into placement of the image, only helps getting the image into the doc:  http://gallery.technet.microsoft.com/office/44ffc6c8-131f-42f1-b24b-ff92230b2e0a
    If you do find something useful, post it here, I'm sure others could benefit!
    SubEdit:  Should have thought of this already...
    http://msdn.microsoft.com/en-us/library/ff837519(v=office.14).aspx

  • Action on cells with placeholders

    I'm rendering a report with help of Microsoft.ReportViewer.WebForms on a aspx site. Some cells have multiple values with placeholders. When using placeholders the action command doesn't seem to be rendered correctly, the cells aren't rendered as links. Have
    tried to use single values in the cells and then the links are working. The links are referring to another report.
    When I render the report in Visual Studio the links are working but not on the website.
    I need to have placeholders due to that the values in each cell needs to have different colors.
    The cells looks like:
    3 (red)
    5 (blue)
    8 (green)
    Does anyone have a clue how to make the action command to render properly?

    I'm still struggling with this problem. Is there any way to color a text value into different colors without using HTML tags? Like this:
    AAA BBB
    CCC

  • Draw text with kerning

    Hi,
    I have to create an image using Java. I tryed using:
    g.setFont(new Font("Times New Roman",Font.PLAIN,50));
    This solution is not good because the font doesn't have the right kerning.
    My question is:
    How do I draw a text using the right kerning (like in Photoshop)?
    Please help me with that.
    Thanks,
    Andrei Todea ([email protected])

    hi rkippen,
    thanks for your help.
    the code that you gave me works but it's not what I want. I don't want do the kerning manually (what your code allows). I want it done by the system using the kerning table for each font. If this is not possible (but I can not imagine I'm the first guy who thought about writing a text that looks good even with large font weight using Java) than I would need to get the kerning table somehow and use it with your code.
    please help me with this problem.
    I really need to write this text with the correct kerning (like in Photoshop, Flash, Word...)
    thank you,
    andrei todea ([email protected])

  • Generating random text for placeholders in Pages

    In the templates that come with Pages the text placeholders are all in Latin, which I think looks quite professional. My question is: how can I generate random Latin text, like in the templates?
    Thanks
      Mac OS X (10.4.7)  

    You can also use the nifty freeware MacLorem, which will generate random Latin text with various specifiable qualities (and can produce mock text for various other "languages").

  • Spliting up stacked text with JavaScript

    I am trying to get any stacked text in my illustrator file that is a single frames  such as with carriage returns such as:
    1
    2
    3
    4
    5
    to be individual text frames.
    Is there a split command I can use?
    Can anybody point me in the right direction?
    Im thinking it would start by finding all the textframes that have carriage returns
    is the carriage return identified as "\n"
    Any help would be appreciated,
    Duane

    I got this awesome code from John Wundes. It would crash illustrator if you had more than one textframe selected. With my modifications it still will not do more than one textFrame with carriage returns.
    It runs through the first time looking for textFrames with carriage returns  in my file and when it finds one it goes into the if statement(which is all of John Wundes code.)
    But when it finishes with the first textFrame with carriage returns it keeps the first line of text selected and quits when moving on to the second textFrame with carriage returns. Does anyone know why it quits
    //Divide TextFrame v.2.1 -- CS,CS2,CS3,CS4,CS5
    //>=--------------------------------------
    // Divides a multiline text field into separate textFrame objects.
    // Basically, each line in the selected text object
    // becomes it's own textFrame. Vertical Spacing of each new line is based on leading.
    // This is the opposite of my "Join TextFrames" scripts which
    // takes multiple lines and stitchs them back together into the same object.
    // New in 2.1 now right and center justification is kept.
    //>=--------------------------------------
    // JS code (c) copyright: John Wundes ( [email protected] ) www.wundes.com
    //copyright full text here:  http://www.wundes.com/js4ai/copyright.txt
        added code part 1 Start
    var doc = app.activeDocument.activeLayer;
    var myTextFrames = doc.textFrames;
    for (i = 0; i < myTextFrames.length; i++) {
                                                                                                  alert("starting textFrmes length" + "the amout text frames = " + i);
      myContent  = myTextFrames[i].contents.toString();
      if (myContent.indexOf("\r") !== -1) {
                                                                                                 alert("starting selected text with carriage returns");       
          myTextFrames[i].selected = true;
        added code part 1 End
    var item =  activeDocument.selection[0];
    var selWidth = item.width;
    if(item.contents.indexOf("\n") != -1){
        //alert("This IS already a single line object!");
    }else{
        //get object position
        //getObject justification
        var justification = item.story.textRange.justification;
        //make array
        var lineArr = fieldToArray(item);
        //alert(lineArr);
        tfTop = activeDocument.selection[0].top;
        tfLeft = activeDocument.selection[0].left;
        activeDocument.selection[0].contents = lineArr[0];
        //for each array item, create a new text line
        var tr = activeDocument.selection[0].story.textRange;
        var vSpacing = tr.leading;
        for(j=1 ; j<lineArr.length ; j++){
            bob = activeDocument.selection[0].duplicate(activeDocument, ElementPlacement.PLACEATBEGINNING);
            bob.contents = lineArr[j];
            bob.top = tfTop - (vSpacing*j);
            if(justification == Justification.CENTER)
                 bob.left = (tfLeft + (selWidth/2)) - (bob.width/2);   
        else
                if(justification == Justification.RIGHT)
                bob.left = (tfLeft + selWidth) - bob.width;   
        else
               bob.left = tfLeft;
            bob.selected = false;       
        added code part 2 Start
    else {
      //alert("The contents of frame "+ i + " is = "+ myContent); 
        added code part 2 End
    function fieldToArray(myField) {
        if (myField.typename == "TextFrame") {
            retChars = new Array("\x03","\f","\r","\n");
            var ct = 0;
            var tmpTxt = myField.contents.toString();
            for (all in retChars )
            tmpArr = tmpTxt.split(retChars[all]);
            ct+= tmpArr.length;
            //--and just for kicks...
            ct+=1;
            //alert(ct);
            while (ct>0) {
                //throw something lucicrious as a content divider...
                tmpTxt = tmpTxt.replace(/[\x03]|[\f]|[\r\n]|[\r]|[\n]/,"_:X:_");
                ct--;
            return tmpTxt.split("_:X:_");

Maybe you are looking for

  • How can i load Metadata file into georaster?

    Hello everybody, I stone a tiff file in my db,I stone tiff file like this: 1.create GeoRaster Table: create table rm_image_t( georid number, file_type varchar2(30), image_file mdsys.sdo_georaster); 2.create trigger: exec sdo_geor_utl.createdmltrigger

  • ITunes treats video's as audio files, won't play video only audio

    Hi, I have the latest iTunes version & the latest OS X lion updates. Late 2009 27" iMac, intel core duo 2, 3.06 ghz.   Forgive me if this comes across as rude, I'm used to being able to find my own solution to problems, and this has been frustrating

  • Opening sap transaction in uwl to webdynpro java screen

    Hi Poral Gurus I am new  to uwl concept . we are in  the process of the Leave apply and approval . the work items are displayed in the sbwp which comes in uwl . when we click on the item in work list it is opening the sap transaction, but the require

  • Configuring Maintenance Optimizer issue

    Hi All, This is the first time I am configuring SM 4.0. I am done with installation, and want to conigure maintenance optimizer. I followed the IMG guide step by step. But after all done, there are no systems listed under the maintenance optimizer of

  • X240 - Windows 7 - Activation issue

    Hi, I have a X240 think pad laptop, it came with Windows 7 x64 installed as standard, with upgrade disks to Windows 8 (even though no disk drive). Anyway, Windows update killed the laptop, so I had to wipe the C Drive and re-install windows 7.  Howev