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

Printing from multiple files


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

Recommended Posts

Posted

I'm using FM6 now and my users are having issues with printing. There is a report that is spread across 3 files. I have one script that prints part, goes to the next file and prints that, and so on. He's a short example of the script

Goto layout [report print]

Print []

External script [Print records from file xxx, no dialog]

External script [Print records from file yyy, no dialog]

Goto layout [report footer]

Print [no dialog]

The problem is with the printing steps that have no dialog. If a user other than me (my computer) runs the script it will not print anything but the very first print step that had the print dialog enabled. I imagine that in the script it's saving my personal printer in the preferences, and since no one else has the printer it just skips it.

Is there a way I can make it specify printing to the default printer and still not have the print dialog come up? It's going to be a drag if the user gets prompted 4 times for the print settings.

-----------

Update:

I just tried the following with my script and it seems to work Dandy.

Goto layout [report print]

Print setup [restore]

Print [no dialog]

External script [Print records from file xxx, no dialog]

External script [Print records from file yyy, no dialog]

Goto layout [report footer]

Print [no dialog]

It's a bit counter-intuitive for me, but many things in FM6 have been. I think it's going to work, it just seems a little bit backwards to me.

On a completely unrelated note, I'm going to be upgrading to FM 8.5 soon, is there some nifty special way I can keep text from getting chopped off on complex print layouts with lot's of sliding going on? It's been the biggest end-user gripe I've had and I'm completely baffled. That was one nice thing about access, it would auto-grow field as necessary and not chop lines in half from page to page.

Posted

The problem I've found with this is now the user can 'Cancel' the Page Setup script step, but it will still print. I've tried the status(currentmessagechoice) function, but apparently that doesn't work unless it's a popup you script. Any ideas other than popping up a message "Are you sure you want to print?"

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