Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Progressive document number Post Reply Post New Topic
Author Message
nalfein
Groupie
Groupie


Joined: 07 Jul 2008
Online Status: Offline
Posts: 47
Quote nalfein Replybullet Topic: Progressive document number
     Posted: 21 Jul 2008 at 5:16am
Hi all
I have this syntax

{@num_doc} / {@delivery}

Where "/" is text obj, "num_doc" is the document number and "delivery" is a variable that count how many delivery date are in the document and, if there's only one, the value is 1 and all items are printed togheter, if there's many, the value is how many del. date are and the program regroup the items ordered by date and print as many pages as del. date are with progressive number.
I.e.: 4 item with 2 different del. date = 2 item at page with this syntax 0001/1 (page 1) and 0001/2 (page 2)

I need to reach this syntax

{@num_doc}{@delivery}(so without "/")

Where if the del. date is one then in the document will appear only num_doc, if there's many the print result is the same as now so 0001/1 (page 1) 0001/2 (page 2) and so on.

Is this possible?

Thnx by now for the answers

Cya
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 22 Jul 2008 at 3:21pm
Try this:
 
If {@delivery} = 1 then
else
  {@num_doc} + '/' + ToText(PageNumber, 0)
 
-Dell
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum