Jump to content

Printing PDFs


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

Recommended Posts

I have a script that loops through 1500 records and prints an associated pdf. I find that now it has missed printing some of these pdfs.

Some are 50 pages long and may take 7 or 8 seconds to send to the printer. But others are only a few pages long and still are not printing.

I ran some tests on a batch of 100 and of course they all printed fine.

So I wonder if there is a way to find out when a pdf has been printed and then go to the next record without an arbitrary pause.

LoopScript.pdf

Link to comment
Share on other sites

This is more than likely a timing issue. The most robust solution would be to use OS level scripting to monitor the printer and only move on in the loop when the printer is not spooling or is done printing.

Or, less robust but entirely inside FM, use a counter in the loop and add an extra long pause every x iterations (x being whatever you think is safe).

Link to comment
Share on other sites

Thanks Wim:

When you talk of OS level scripting do you mean the Comand Line on Windows (this is being run on a Windows system) or VB Script.

I am not that familiar with automation tools on Windows.

Could you point me towards some learning resources for those topics?

Link to comment
Share on other sites

This topic is 6537 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.