IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Page 2 of 2 < 1 2
Topic Options
#53233 - 03/21/16 04:30 PM Re: Printing part of the data in Bold font [Re: Walli]
Walli Offline
OL Expert

Registered: 02/13/13
Posts: 320
Loc: Ontario
Hi Kaiser, your well thought logic worked perfectly smile thank you for your time.

Cheers

Top
#53303 - 04/11/16 11:48 AM Re: Printing part of the data in Bold font [Re: Walli]
Walli Offline
OL Expert

Registered: 02/13/13
Posts: 320
Loc: Ontario
cold case wink looking forward if anyone can help. this looks like very simple but very tricky

Top
#53304 - 04/11/16 12:18 PM Re: Printing part of the data in Bold font [Re: Walli]
Walli Offline
OL Expert

Registered: 02/13/13
Posts: 320
Loc: Ontario
I'm almost there, now my PressTalk logic for wrapping works, but a new (\n) or (\r) is inserted after each bold word. Can someone take a look at the code I have and see if you can think of a solution to remove the new line portion and make the paragraph wrap nicely smile


define(&i,integer,0)
define(&j,integer,0)
define(&k,integer,0)
define(&s,string,'')
define(&l,integer,0)
define(&temp,string,'')

&s:= 'If you wish to spend with us on either *March 18th* or *March 19th* for this two-day only event then take the first step to huge savings by visiting your personal page now: *http://helpme.com/TechSupport* '

%&s:=trim(@(7,1,205)) %data

search(&s,'*')
&k:=&k+1
endsearch()

&s:=trim(@(7,1,205))
&l:=length(&s)
&i:=pos('*',&s)
for(&j,1,1,&k)

BeginParagraph(0.0000,&Width,0.0000,'left',0.1667,False)
&temp:=left(&s,&i-1)
show(left(&s,&i-1))
&s:=right(&s,&l-&i)
&i:=pos('*',&s)
setstyle(&style2) %% bold %%
&temp:=left(&s,&i-1)
show(left(&s,&i-1))
&l:=length(&s)
&s:=right(&s,&l-&i)
&l:=length(&s)
%&s:=right(&s,&l-&i)
&i:=pos('*',&s)
setstyle(&style1) %%unbold%%
%show(&S)
EndParagraph()
%Crlf(0.1667)
endfor()
THANKS

Top
#53305 - 04/11/16 12:43 PM Re: Printing part of the data in Bold font [Re: Walli]
Bryce Offline
OL Guru

Registered: 04/28/10
Posts: 105
Loc: MN
Why not why create an overlay page containing the formatted text. Then position and call the page from within presstalk?

Top
#53310 - 04/12/16 04:55 PM Re: Printing part of the data in Bold font [Re: Walli]
Walli Offline
OL Expert

Registered: 02/13/13
Posts: 320
Loc: Ontario
Thank you all for your helps, it's fixed now wink
I used WordWrapHTML function

Top
Page 2 of 2 < 1 2