Mathematica Mathematica: Duplex Printing from button inside DialogNotebook on Mac

  • Thread starter ChristinaJ
  • Start date

ChristinaJ

Gold Member
43
1
All,

I have the following code which generates a window containing the variable PrintOut and a Print button. When the print button is pressed the contents of the window are sent to the printer and simultaneously a pdf is generated.

Code:
PrintOut = "Some stuff - plots, tables etc.";

DialogInput[
  DialogNotebook[
   Column[{PrintOut, 
     Row[{Button["Print", 
        DialogReturn[NotebookPrint[PrintOut, "filename.pdf"];
         NotebookPrint[
          CreateDocument[PrintOut, Visible -> False, 
           PageHeaders -> {{"a", "b", DateString[]}, {"a", "b", 
              DateString[]}}]]]], CancelButton[]}]}]], 
  ShowStringCharacters -> False, 
  WindowTitle -> "This Window " <> DateString[]];
The problem arises when PrintOut contains enough stuff to be spread over multiple pages. I wish to have the pages print on both sides but can't figure out how to do it.

I have the print settings within MMA set to duplex and when I print a notebook using the front end I get duplex but it does not work for DialogNotebook. I am using MMA8

Help appreciated.
 

Want to reply to this thread?

"Mathematica: Duplex Printing from button inside DialogNotebook on Mac" You must log in or register to reply here.

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top