All,(adsbygoogle = window.adsbygoogle || []).push({});

I have the following code which generates a window containing the variablePrintOutand 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.

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.Code (Text):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[]];

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.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Mathematica: Duplex Printing from button inside DialogNotebook on Mac

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads - Mathematica Duplex Printing | Date |
---|---|

Mathematica Cannot do the integral of the Hyper-geometric function? | Mar 11, 2018 |

Mathematica Cannot Plot This Function in Mathematica | Feb 26, 2018 |

Mathematica While Loop in Mathematica | Feb 25, 2018 |

Mathematica Mathematica Real Part | Feb 24, 2018 |

LaTeX Printing Code from Python in Latex via "minted" | Sep 7, 2017 |

**Physics Forums - The Fusion of Science and Community**