#36891 - 08/12/11 01:50 PM
Re: Variable Paragraph
[Re: Kent Moon]
|
Marc-André
Unregistered
|
Hi Kent,
Please be more specific as to what you need help with.
The best description possible will allow us to provide you with a better solution.
Regards,
Marc
|
Top
|
|
|
|
#36894 - 08/12/11 02:47 PM
Re: Variable Paragraph
[Re: ]
|
OL Newbie
Registered: 02/16/11
Posts: 5
Loc: CA
|
We have a document. One of paragraphs needs to be different for each versions. For Version A, that paragraphs has 10 sentence, for Version B, that paragraph has 8 sentence ...etc.
How do we switch the paragraph based on Version?
Thanks.
|
Top
|
|
|
|
#36943 - 08/17/11 09:37 AM
Re: Variable Paragraph
[Re: Kent Moon]
|
Benoit Potvin
Unregistered
|
Hi, An expression using IF and TEXT_FILE should help you achieve this behavior. You can find a description of the TEXT_FILE expression in the PrintShop Mail Design User Guide ( Page 153) Hope this helps
Edited by Benoit Potvin (08/17/11 09:37 AM)
|
Top
|
|
|
|
#37254 - 09/20/11 04:44 AM
Re: Variable Paragraph
[Re: ]
|
OL Newbie
Registered: 02/16/11
Posts: 5
Loc: CA
|
This worked. Thank you.
Now I want to add variable within RTF. For example, "Your membership expires on @stopdate@ Renew your..."
Is this possible? Thank you.
|
Top
|
|
|
|
#37256 - 09/20/11 07:21 AM
Re: Variable Paragraph
[Re: Kent Moon]
|
Tyran van Zyl
Unregistered
|
Yes this is possible, just put the @variable@ in the rtf file.
Also note that you do not need to use the IF statement if you are a variable in your data that matches the name of your text file.
You can do that using something like this:
TEXT_FILE("c:/My Text Files/" & [VERSION] & ".txt")
Regards,
|
Top
|
|
|
|
#37259 - 09/20/11 12:31 PM
Re: Variable Paragraph
[Re: ]
|
OL Newbie
Registered: 02/16/11
Posts: 5
Loc: CA
|
I did that, but it is not populating variable. It just shows up as "Your membership expires on @stopdate@ Renew your..."
Thank you.
|
Top
|
|
|
|
#37260 - 09/20/11 12:36 PM
Re: Variable Paragraph
[Re: Kent Moon]
|
Eric Lachance
Unregistered
|
Kent,
If you have PrintShop Mail 7.1, you need to define @stopdate@ as a persistent variable. In the Variables pane, right-click and click Add Variable. Name it stopdate and put in a value. That should work.
If you're on 7.0 you need to use a workaround. Simply create a text object, place it outside of the printable area, type in @stopdate@ in it, then modify the value in the Variables pane for the value you want. You also need to make sure that the text object is played *on top* (or "before") the object where the rtf file is output, so that it's evaluated first (or else the variable wouldn't exist at that time). You can change the object order in the Layout pane.
|
Top
|
|
|
|
#37264 - 09/20/11 03:05 PM
Re: Variable Paragraph
[Re: Raphael Lalonde Lefebvre]
|
OL Newbie
Registered: 02/16/11
Posts: 5
Loc: CA
|
That worked! I did realized variable name is case sensitive. Thank you.
|
Top
|
|
|
|
#37273 - 09/21/11 11:37 AM
Re: Variable Paragraph
[Re: ]
|
OL Newbie
Registered: 09/21/11
Posts: 2
|
Is this feature only available in 7 or later? I am using PSM V6.1.2 (build1) and can't embed variable names in RTF files, they just appear as @variable name@ without populating
|
Top
|
|
|
|
#37276 - 09/21/11 12:19 PM
Re: Variable Paragraph
[Re: GDGeorge]
|
Eric Lachance
Unregistered
|
George,
You posted in the PrintShop Mail Suite 7 forums, it was safe to assume you were on version 7. I'm not sure if that worked in version 6.
|
Top
|
|
|
|
|
|