Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14962 > unrolled thread

Duplex Printing from button inside DialogNotebook on Mac

Started bycj <cj.girlie@gmail.com>
First post2013-06-21 09:44 +0000
Last post2013-06-21 09:44 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Duplex Printing from button inside DialogNotebook on Mac cj <cj.girlie@gmail.com> - 2013-06-21 09:44 +0000

#14962 — Duplex Printing from button inside DialogNotebook on Mac

Fromcj <cj.girlie@gmail.com>
Date2013-06-21 09:44 +0000
SubjectDuplex Printing from button inside DialogNotebook on Mac
Message-ID<kq179e$gns$1@smc.vnet.net>
Posted this on stack, but not even a nibble.

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.

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 Mathematica 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 Mathematica 8

Help appreciated.

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web