EmEditor (text editor) Forum Index
   Questions and Answers about EmEditor Core
     Question: Is there an option to print all the open files in one click?
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
ArthurZ
Posted on: 1/4/2013 4:31 pm
Just can't stay away
Joined: 1/26/2012
From:
Posts: 78
Question: Is there an option to print all the open files in one click?
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.
Yutaka
Posted on: 1/4/2013 6:29 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2406
Re: Question: Is there an option to print all the open files in one click?
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!


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

ArthurZ
Posted on: 1/7/2013 12:45 pm
Just can't stay away
Joined: 1/26/2012
From:
Posts: 78
Re: Question: Is there an option to print all the open files in one click?
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
---------------------------
?
ArthurZ
Posted on: 1/7/2013 12:48 pm
Just can't stay away
Joined: 1/26/2012
From:
Posts: 78
Re: Question: Is there an option to print all the open files in one click?
I am also curious if there is a complete listing of all the IDs for the editor.ExecuteCommandByID command?
Yutaka
Posted on: 1/7/2013 1:57 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2406
Re: Question: Is there an option to print all the open files in one click?
Hello,

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

Thanks!


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

Yutaka
Posted on: 1/7/2013 2:00 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2406
Re: Question: Is there an option to print all the open files in one click?
Hello,

The command reference on EmEditor Help or 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!


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文