• sharon.poirier (11/29/2012)


    Hi John,

    Thanks for keeping with me on this. I did as instructed and I am getting my header record in my file, however, two things are not correct:

    1. my carraige return line feed is not happening... all on one line (i need two) it does work while in the expression editor.

    2. the expression uses variables that are set in a script task (post execute) sub. these variables are not being resolved in my header.

    ??

    Sharon

    Hi Sharon,

    1. If you look on page 2 of this thread their is a post related to the Carriage Returns. It references using escape characters "\r". I don't recall at the moment how it works, so you may need to take info from that post and do a little more research.

    2. I'm not exactly sure I understand what you mean by "script task (post execute) sub". What is the order of your steps? It seems this is more of a problem with resolving your variables than with the header step exactly. If you did another script task with a Message Box after the script task setting up your variables do they values display then? They probably are but I will ask anyway, are the variables being passed in as ReadWrite to the script task setting them?

    It seems like you are very close now.

    John Dempsey