[comp.sys.mac.hypercard] 'open Report' Prob In

Ken.Knight@f421.n109.z1.fidonet.org (Ken Knight) (01/08/91)

_novinger@cup.portal.com writes:
>
>I'm having trouble making the open report command in HC 2.0 work.
>invoke
>the command with "open report template "Foo"" and all appears to go
>well
>until I click the Print button.  I get the Laserwriter print dialog
>box,
>click Print, and *nothing* happens.
>
>Is there a "close report printing" command ot the equivalent?
>According
>to
>Goodman's HC 2.0 book, nothing else has to be done.
>
>Thanks for the help!
>
>Walt Novinger
 
Walt, here is a script fragment that should help:
 
  mark all cards -- actually in the whole thing it either marks
everything
                 -- or just the current card.
  open report printing with template "report card contents"
  print marked cards
  close printing
 
You place the 'open report printing' within your button that actually
does the printing. Technically, you could probably place this fragment
anywhere and the "close printing" in your actual print button, but I'd
advise against that since it breaks things up and can lead to confusion.


--  

        Ken Knight, Ken.Knight@f421.n109.z1.fidonet.org
      via The Black Cat's Shack's FidoNet<->Usenet Gateway
          blkcat.fidonet.org   and   Fidonet 1:109/401