Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

# of Copies based on field


This topic is 7371 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Is it possible to tell FM to print x amount of copies based on a particular field?

here's the issue, maybe there's another way to it. I created a packing slip / shipping label program that we have printing to a Zebra. The user puts in the total qnty and the qnty per box. From there i need it to print however many labels of the same label needed... (i.e. - 100 total pieces, 10 / box, i'd need 10 labels)...

is there an automated way to do this?

TIA

Posted

Hey ya, try this:

Create a global number field called PrintCounter. Do not allow users to use FM's native Print function, or else make it abundantly clear that they do so at their own risk. Instead, script the print with something like:

Set Field PrintCounter = 0

Loop

Print the Document

Set Field PrintCounter = PrintCounter + 1

Exit Loop if PrintCounter >= total_qnty / qnty_per_box

End Loop

BTW, what's a Zebra?

HTH

Jerry

Posted

Hi,

Ar you using Avrey sheets, and you want several of the same labels in say 10 avery labels ?

If so, there's a sampler made just for you somewhere in this forum.

Do a search for "Printing Labels".

Posted

sorry i wasn't clear. A zebra is a thermal label printer. Thermals are mainly used for box shipping labels like you see on UPS boxes. The come out on label per sheet, so it's not something like an avery label where there's multiple labels per 8.5 x 11 sheet:

http://www.pcmall.com/pcmall/shop/detail.asp?dpno=969524

Quintech, thanks for the suggestion. I tried that option in FM 6 the last time i had to make a similar program, unfortunately it would not print all of the pages, as if the program tried to print too quickly for the printer driver. But that was in 6 and not using a thermal printer (which receive their data very quickly) so i will try that as well.

How i alleviated this problem last time was kinda a pain, so i'm hoping that either the print counter works, or there is another way. here's how i did it last time since the print counter method didn't work:

Show all

Omit record

Show omitted ( this confirmed that i was on the exact label they needed )

set field ( labelcount, 1)

Loop

duplicate record

set field ( labelcount, labelcount + 1 )

exit loop if labelcount = totalboxes

print found records

so, that works wonderfully, but it's messy and not very elegant. Something i didn't think about then that i will do now is also mark the duplicates for deletion, then on exit, find all "duplicates" and delete.

i am hoping there is a better way. I will try the print counter method and let you know if it worked.

Thanks

This topic is 7371 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.