Print on Windows w/Dialog

Denis's Avatar

Denis

20 May, 2010 05:01 PM

Dear myFMbutler,

I'm just learning that the FileMaker Print script step stores paper size with it when you try and save Records being browsed or Current record, and this "feature" is making my life miserable (even though I have saved the printersetup in a field)

In order to use the plugin effectively, do I have to call the Print script step directly after restoring the print setup with PrinterSwitch?
OR do I have to call the three steps of:
- Set field ... to PrSw_PrintDialog("disable" ) - Print [ ] - Set field ... to PrSw_PrintDialog("enable" )

Which is the best way to proceed and not have the paper size change when calling the Print dialog? And I'd prefer that users do see the Print dialog in case they want to change any copies, etc.

Thanks for your help!

Best,
Denis

  1. Support Staff 1 Posted by Support on 21 May, 2010 07:09 AM

    Support's Avatar

    It appears that for what you are trying to do the best approach is to capture the settings (with the correct printer, paper size etc.), and then restore at the time of printing. Then, if you want to print without dialog, you need to use the 3 steps:

    • Set field ... to PrSw_PrintDialog("disable" )
    • Print [ ]
    • Set field ... to PrSw_PrintDialog("enable" )

  2. Support closed this discussion on 21 May, 2010 07:09 AM.

  3. Support Staff 2 Posted by Support on 21 May, 2010 02:06 PM

    Support's Avatar

    Actually you cannot restore print settings first, then show a dialog where a user can make changes…

    The whole point of a capture & restore procedure, is that you can save an complete print setup, and then re-use it - unchanged - without showing the dialog.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac