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 "PRINT"
(Changed WINCLICK for DS equivalent) |
|||
Line 3: | Line 3: | ||
When you use the PRINT command the dialog manager takes over with the values defined in the ONPRINT command. Thus you can select a specific printer by using ONPRINT P=3. In this case the third printer is used. If you use only P= or P=* the most recently selected printer is used. Typically this is the default windows printer, but if you select another printer before (e. g. with P=3) then printer #3 is used. | When you use the PRINT command the dialog manager takes over with the values defined in the ONPRINT command. Thus you can select a specific printer by using ONPRINT P=3. In this case the third printer is used. If you use only P= or P=* the most recently selected printer is used. Typically this is the default windows printer, but if you select another printer before (e. g. with P=3) then printer #3 is used. | ||
− | If the page uses frames and you want to print only a specific frame then select this frame with | + | If the page uses frames and you want to print only a specific frame then select this frame with DS CMD=CLICK X=... Y=... first. |
Tip: If you want to print PDF files with the Acrobat Reader Plug-In you need to add "ONDIALOG POS=1 BUTTON=OK" command before the PRINT statement. | Tip: If you want to print PDF files with the Acrobat Reader Plug-In you need to add "ONDIALOG POS=1 BUTTON=OK" command before the PRINT statement. |
Revision as of 22:24, 29 January 2010
Prints the current browser window on your default printer.
When you use the PRINT command the dialog manager takes over with the values defined in the ONPRINT command. Thus you can select a specific printer by using ONPRINT P=3. In this case the third printer is used. If you use only P= or P=* the most recently selected printer is used. Typically this is the default windows printer, but if you select another printer before (e. g. with P=3) then printer #3 is used.
If the page uses frames and you want to print only a specific frame then select this frame with DS CMD=CLICK X=... Y=... first.
Tip: If you want to print PDF files with the Acrobat Reader Plug-In you need to add "ONDIALOG POS=1 BUTTON=OK" command before the PRINT statement.
Purpose: The PRINT commands is typically used by customers that use iMacros for web automation e. g. they run macros that automatically log into a website, trigger a series of reports and then have the macro print them out.
Syntax
Parameters
None, but the printer can be selected with the ONPRINT command. The reason why the printer selection is not part of the PRINT command is that sometimes websites start the print dialog automatically. Then the ONPRINT command catches the print dialog and automates it. So the purpose of the PRINT command is only to trigger the print dialog, everything else is done by ONPRINT.
Examples
Related example macro: Demo-Print