- AuthorPosts
- January 5, 2013 at 1:31 am #10716ArthurZParticipant
I am curious if there is an option to print all the currently open files at once? Could be a new command beside the Print… option in the File menu if does not exist.
I am thinking a macro would do, too worse case.
Also would be nice to be able right from the Project.
January 5, 2013 at 3:29 am #10719Yutaka EmuraKeymasterHello,
This macro should print all open documents directly to the default printer.
[JavaScript]
docs = new Enumerator( editor.Documents );
for( ; !docs.atEnd(); docs.moveNext() ){
doc = docs.item();
doc.Activate();
editor.ExecuteCommandByID(4115);
}Thank you!
January 7, 2013 at 9:45 pm #10723ArthurZParticipantThank you!
This works but I am curious if I can get rid of the multiple messages when printing
—————————
EmEditor
—————————
Portions of lines may continue beyond the right edge of the page. Would you like to wrap lines according to the page width?
—————————
Yes No Cancel
—————————
?January 7, 2013 at 9:48 pm #10724ArthurZParticipantI am also curious if there is a complete listing of all the IDs for the editor.ExecuteCommandByID command?
January 7, 2013 at 10:57 pm #10726Yutaka EmuraKeymasterHello,
You might want to check the “Wrap by Page when Printing” check box on the Print tab of configuration properties.
Thanks!
January 7, 2013 at 11:00 pm #10727Yutaka EmuraKeymasterHello,
The command reference on EmEditor Help or http://www.emeditor.com/help/cmd/ shows the ID on each command page. Also, the plug-in header http://www.emeditor.com/help/plugin/plugin.h lists the command IDs.
Thank you!
- AuthorPosts
- You must be logged in to reply to this topic.