Getting the printer from the settings

Reinder's Avatar

Reinder

13 Apr, 2010 08:20 AM

PrinterSwitch has to instructions to restore settings: SelectPrinter and PrintSetup("restore").
To give the user maximum flexibility, I would like to read the printer that is chosen just before PintSetup("capture") is used.
The example file Capture-Restore doesn't give the solution.
Maybe what I want isn't possible at all.....

This is what I want:
Just before printing I'd like to check if there is any preference stored by this user for this layout on this printer.
So I check my printer preference table for a record with those three variables.
If not, I would like to give the user the possibility to store the preferences. That includes a possible change of printer.
I thought it would be possible by reading the setup information after using the script step Print Setup on windows or PrintDialog("macdialog") on MacOSX.
But I can't identify which printer is chosen.

The Configure-Restore example file shows a way of storing settings which starts with a manual selection of a printer and after that, it stores the chosen settings. As a user you are able to change the printer during the selection of the settings. It is impossible to see if that is done. The example file stores the preselected printer name with the selected settings, regardless of that settings belong to the preselected printer.

I hope it is clear. And even more that there is a solution....
Thx for reading anyway :)

Reinder.

  1. 1 Posted by Reinder on 13 Apr, 2010 08:56 AM

    Reinder's Avatar

    In addition: the Configure("only") option doesn't affect the list of selectable printers when using the script step Print Setup on windows or PrintDialog("macdialog") on MacOSX.
    It only restricts the list of printers returned by GetPrinterNames.....

    Reinder.

  2. Support Staff 2 Posted by Support on 13 Apr, 2010 11:47 AM

    Support's Avatar

    As far as I understand from reading your question, what you are looking for is a different approach to what we are currently offering.

    I have forwarded our question to our development team.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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