Workflow Soluiton

 View Only
  • 1.  Formatting in MergeTextComponent not retained

    Posted May 20, 2010 10:47 AM
    I am using a MergeTextComponent to merge several pieces of text together with some carriage returns in between the data.  I then use a CreateTextFile component and use the text merge for its contents.  Finally, I create the txt file using the WriteFile component.  When I look at the file, none of the formatting created in MergeText is retained.  Am I doing something wrong?


  • 2.  RE: Formatting in MergeTextComponent not retained

    Posted May 20, 2010 10:58 AM
    I have run into this problem many times and have communicated it to Symantec at least once.  The best solution I have found is to use a Merge HTML component, then just before creating the file use the Convert HTML to Text component.  Also, when using the Merge HTML component, to assure all of your carriage returns will stay when appending a dynamic number of times to the same variable, you should click "Source" at the bottom, then "OK".

    Obviously not the way it was intended to be used but its the only solution I have found that will dynamically append information and keep the formatting in tact.


  • 3.  RE: Formatting in MergeTextComponent not retained

    Posted May 20, 2010 11:10 AM
    I'll give it a whirl.  Thanks for the quick response.


  • 4.  RE: Formatting in MergeTextComponent not retained

    Posted May 24, 2010 04:10 PM
    I'm still having problems with this.  In fact, the HTML actually made it worse because I also get some of the HTML tags in my text now.  Does anyone else have a good workaround?  I've been toying with the idea of building a word document instead of a text document, but that seems to have a bit more overhead.


  • 5.  RE: Formatting in MergeTextComponent not retained
    Best Answer

    Posted Jun 29, 2010 10:55 AM
    The best solution I found was to use the Merge HTML component to build/format the text, use the HTML To Text Converter component to convert the html to text, and then utilizing the PDF.dll integration to create a PDF file from the text.  The PDF maintains just about every type of formatting that I've thrown at it so far!