The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
Difference between revisions of "ONPRINT"
Jump to navigation
Jump to search
(→Syntax) |
|||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | Handles print dialogs. The ONPRINT command must appear before the PRINT command which triggers the printer dialog to come up. | + | Handles print dialogs. The ONPRINT command must appear before the [[PRINT]] command which triggers the printer dialog to come up. |
− | === Syntax === | + | === Syntax [[Image:IMacros-icon.png|iMacros Browser]] [[Image:Ie-icon.png|IE Plug-in]]=== |
− | |||
− | |||
− | |||
− | |||
ONPRINT P=n BUTTON=(PRINT|CANCEL) | ONPRINT P=n BUTTON=(PRINT|CANCEL) | ||
Line 12: | Line 8: | ||
*P | *P | ||
− | *:Specifies the number of the printer to use in the drop down list. If you use only P= or P=* the most recently selected printer is used. Typically this is the default windows printer. | + | *:Specifies the number of the printer to use in the drop down list. If you use only P= or P=* the most recently selected printer is used. Typically this is the default windows printer. |
+ | *:Related forum post: [http://forum.iopus.com/viewtopic.php?f=6&t=12742 How to determine the printer number.] | ||
+ | |||
+ | *Button | ||
+ | *:Specifies the button on the Print dialog. By default the PRINT button is selected. With CANCEL the dialog is canceled and no page is printed. The CANCEL option is useful if you want to cancel a print dialog that was triggered by a website automatically. | ||
=== Examples === | === Examples === | ||
+ | Select the third printer in the list and print the page: | ||
URL GOTO=http://www.iopus.com | URL GOTO=http://www.iopus.com | ||
ONPRINT P=3 | ONPRINT P=3 | ||
− | PRINT | + | PRINT |
+ | |||
+ | Cancel a Print dialog that appears: | ||
+ | |||
+ | ONPRINT P=* BUTTON=CANCEL | ||
+ | URL GOTO=javascript:print() | ||
=== See Also === | === See Also === | ||
[[PRINT]] | [[PRINT]] |
Revision as of 12:10, 7 February 2017
Handles print dialogs. The ONPRINT command must appear before the PRINT command which triggers the printer dialog to come up.
Syntax
ONPRINT P=n BUTTON=(PRINT|CANCEL)
Parameters
- P
- Specifies the number of the printer to use in the drop down list. If you use only P= or P=* the most recently selected printer is used. Typically this is the default windows printer.
- Related forum post: How to determine the printer number.
- Button
- Specifies the button on the Print dialog. By default the PRINT button is selected. With CANCEL the dialog is canceled and no page is printed. The CANCEL option is useful if you want to cancel a print dialog that was triggered by a website automatically.
Examples
Select the third printer in the list and print the page:
URL GOTO=http://www.iopus.com ONPRINT P=3 PRINT
Cancel a Print dialog that appears:
ONPRINT P=* BUTTON=CANCEL URL GOTO=javascript:print()