Can you help me please. We are using Crystal 8.5 with Oracle 9i. We have a requirement to print out labels to a Zebra printer using ZPL language. This is normally not a problem to embed within crystal the ZPL code and pass the variable information as required.
Within ZPL there is a function that tells the printer how many labels to print. This is fine if the information is identical on each label. However we now have a situation where for 1 single despatch record we need to print multiple labels with incrementing serial numbers embedded within a barcode. Embedding the serial number within the human readable text is not an issue. It is the barcode that causes the problem.The ZPL will not allow us to embed a serialisation number within a set of text and print it as a single barcode. So to get around this I am trying to get crystal to print the zpl code for each label required.
Sorry for the long story it was to explain the background.
What I am trying to get Crystal 8.5 to do is print data multiple times from a loop of some sort. As in
for i := 1 to nNumLabels
print @Boxlabel
next
The above is not crystal syntax but it is what I am trying to achieve. The @boxlabel function contains the zpl code for 1 label and I can increment a counter to give me the serial number each time I call it. However I cannot get Crystal to print multiple records from within a loop. It will either print just the one record or gives me TRUE.
Is there a way of printing a string (which is in itself approx 250 characters long) multiple times from a single database record? As the number of labels will vary each time I cannot hard code it.
Any thoughts and suggestions will be much appreciated. Thanks in advance.
Regards
Richard Chambers
Within ZPL there is a function that tells the printer how many labels to print. This is fine if the information is identical on each label. However we now have a situation where for 1 single despatch record we need to print multiple labels with incrementing serial numbers embedded within a barcode. Embedding the serial number within the human readable text is not an issue. It is the barcode that causes the problem.The ZPL will not allow us to embed a serialisation number within a set of text and print it as a single barcode. So to get around this I am trying to get crystal to print the zpl code for each label required.
Sorry for the long story it was to explain the background.
What I am trying to get Crystal 8.5 to do is print data multiple times from a loop of some sort. As in
for i := 1 to nNumLabels
print @Boxlabel
next
The above is not crystal syntax but it is what I am trying to achieve. The @boxlabel function contains the zpl code for 1 label and I can increment a counter to give me the serial number each time I call it. However I cannot get Crystal to print multiple records from within a loop. It will either print just the one record or gives me TRUE.
Is there a way of printing a string (which is in itself approx 250 characters long) multiple times from a single database record? As the number of labels will vary each time I cannot hard code it.
Any thoughts and suggestions will be much appreciated. Thanks in advance.
Regards
Richard Chambers