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)

Topic Options
#30380 - 09/23/09 08:27 AM next record...
brianp Offline
Junior Member

Registered: 06/19/09
Posts: 14
Loc: Indiana
I have been trying to find this and I can not, so, I need help or at least a point in the right direction.

I am using PlanetPress 7 Design with a text file coming in.
(Looks like this)
R=xxxxxxxxxxxxx
O=xxxxxxxxxxxxx
L=xxxxxxxxxxxxx
L=xxxxxxxxxxxxx
T=xxxxxxxxxxxxx
R=xxxxxxxxxxxxx
O=xxxxxxxxxxxxx
L=xxxxxxxxxxxxx
T=xxxxxxxxxxxxx
END

I have used Talk to loop through each line and place the needed information at the right place. It works great for the first record. I can see every thing great in print preview.
My problem is getting the next record in this text file. Any suggestions?

Top
#30381 - 09/23/09 09:15 AM Re: next record...
Gerald Offline
Member

Registered: 07/24/08
Posts: 74
Loc: Italia - France
Hi,
In PlanetPress you can use your file with different method.

If you want "one record = one page" then you must indicate in the "Sample Data/Data Selector" Line by page : 1, by default is 66)

If you want "x record = one page" then you must indicate in the "Sample Data/Data Selector" Line by page : the number max (and use a x'FF' char to indicate the end of your record)

If you want "n-client on one page" then you can use the n-up printing with a virtual page.

Exist other mode, but I think the first solution can help you. If not, expose what do you need exactly smile

Top
#30382 - 09/23/09 10:44 AM Re: next record...
brianp Offline
Junior Member

Registered: 06/19/09
Posts: 14
Loc: Indiana
Gerald,
That did give me a second page. But I guess the n-up would be what I need.
Looking back, I was not as clear as I needed to be. R is the beginning of a record ... T is the end of that record. I need them on one page and the next R on the following pages.

Thanks.

Top
#30383 - 09/23/09 01:14 PM Re: next record...
Gerald Offline
Member

Registered: 07/24/08
Posts: 74
Loc: Italia - France
Ok...

Page 1 :
R=xxxxxxxxxxxxx
O=xxxxxxxxxxxxx
L=xxxxxxxxxxxxx
L=xxxxxxxxxxxxx
T=xxxxxxxxxxxxx
Page 2 :
R=xxxxxxxxxxxxx
O=xxxxxxxxxxxxx
L=xxxxxxxxxxxxx
T=xxxxxxxxxxxxx
Next Page

How is the structure of your file ? csv, txt , database ? You can post a sample with false data without change any carriage-return ?

It's a project with a List or Table in a page (type invoices) ? So "O" and "L" are n-times on a page and can generate other pages ?

I think you can do that first :
Take your file and use a vbscript to add a x'FF' after the end of each T record, if possible.
Open in Design and navigate with the datapanel to see if it's ok.

*The n-up is more to print "Postal Card" and "invitation" project (and other things for sure)

This topic can help you

Top
#30384 - 09/23/09 02:15 PM Re: next record...
brianp Offline
Junior Member

Registered: 06/19/09
Posts: 14
Loc: Indiana
Gerald,
Thanks for the link. Changing Data pages when word is found, I believe is exactly what I would like to do. However, how do you view these? PP7 does not see the files.

What is special with the x'FF'?

Here is a sample of my data:
R=CP =Cal-Park =08/21/08=057=John Doe
O= 66811=00824041= 87250=Company Name
L=148024 =Diced Ham =02= 1 = =4030A1
T= 1 = 0

Each R(Route) needs to be on its own page.
There can be multiple 'O', which in turn can have multiple 'L' for each 'O'. All is ended with a single 'T' for each 'R'.

Thanks,

Top
#30385 - 09/24/09 05:30 AM Re: next record...
Gerald Offline
Member

Registered: 07/24/08
Posts: 74
Loc: Italia - France

Top
#30386 - 09/24/09 08:42 AM Re: next record...
brianp Offline
Junior Member

Registered: 06/19/09
Posts: 14
Loc: Indiana
Thanks for the reply,
I'll change the emulation to csv and see what can be done at that point.
I am very new to Planetpress, this being my first project. The guy that worked on this quit and I have been elected to the position. smile So, I'm learning.
As for the data, there is only one 'R', with an unknown number of 'O' and 'L'.

Top
#30387 - 09/24/09 08:53 AM Re: next record...
Gerald Offline
Member

Registered: 07/24/08
Posts: 74
Loc: Italia - France
Good Luck smile

Top
#30388 - 09/24/09 09:20 AM Re: next record...
Anonymous
Unregistered


Hi Brianp,

From what I can understand, you only need each datapage to start everytime you see 'R='. In your document, open your data pane. Select user defined emulation. Press on the "Use presstalk editor" button. Simply replace the '\014' by 'R='. This should do the trick. Please let us know if you need assistance setting this up.

Note that this will not work if you absolutely want your record to stop at 'T='. It will only start at 'R='. If 'T=' ALWAYS comes right before 'R=', then you are good to go. Make sure your lines per page is at least 66.

Hope this helps. Regards,

Olivier

Top
#30389 - 09/24/09 01:33 PM Re: next record...
brianp Offline
Junior Member

Registered: 06/19/09
Posts: 14
Loc: Indiana
THANK YOU
I have finally got it to work the way I needed it to.
Thanks Gerald for the direction.
Thanks Olivier, That's what I was looking.

Top