Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10716
    ArthurZ
    Participant

    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.

    #10719
    Yutaka Emura
    Keymaster

    Hello,

    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!

    #10723
    ArthurZ
    Participant

    Thank 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
    —————————
    ?

    #10724
    ArthurZ
    Participant

    I am also curious if there is a complete listing of all the IDs for the editor.ExecuteCommandByID command?

    #10726
    Yutaka Emura
    Keymaster

    Hello,

    You might want to check the “Wrap by Page when Printing” check box on the Print tab of configuration properties.

    Thanks!

    #10727
    Yutaka Emura
    Keymaster

    Hello,

    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!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.