[comp.sys.mac.hypercard] print problems

David_Greg_Herlihy@cup.portal.com (03/03/91)

Some question: first I cant seem to get the "open print report with template .
to work.  What follows..a domenu "print report..." ?
Also, is there anyway in hypertalk to set the print orientation, i.e. landscap
vs. portrait before presenting the print report dialog box?  It seems this
can only be set from the File menu and does not adjust to the individual
report opened.  It would be nice if everytime you selected a template
"envelope", for example, if hypercard would automatically set the print
orientation to landscape.

FInally, how can I change the print report default to "marked card" instead
of "all card"?  I don't understand why the default is "all cards". It seems
for logical and useful to me that it be "marked cards"  Any suggestions?

Thank you for any help you can give me.

gandalf@apple.com (Martin Gannholm) (03/07/91)

In article <39732@cup.portal.com> David_Greg_Herlihy@cup.portal.com writes:
> Some question: first I cant seem to get the "open print report with 
> template to work.  What follows..a domenu "print report..." ?

The HyperTalk syntax is as follows:
    open report printing with template "foo"
where foo is the name of the template. You can get "the reportTemplates of 
this stack" to get a return-delimited list of the report templates you 
have in your stack.

Herlihy continues:
> Also, is there anyway in hypertalk to set the print orientation, i.e. 
> landscape vs. portrait before presenting the print report dialog box?
> It seems this can only be set from the File menu and does not adjust 
> to the individual report opened.  It would be nice if everytime you 
> selected a template "envelope", for example, if hypercard would 
> automatically set the print orientation to landscape.

There is no way for an application to force landscape mode printing in a 
compatible way, therefore HyperCard does not even try to do this. Saving 
one whole Mac print record per report template would eat more space in the 
stack, and would require the Page Setup control (menu, button, whatever) 
to appear in the print report dialog, not in the usual file menu where it 
normally is.
    What you may try is putting a `doMenu "Page Setup..."` in the script 
before you start the printing, so that the user can choose his page setup 
preferences. Remember that you can also say `open report printing with 
dialog` which allows the user to choose and even customize a report when 
you go to print.

Lastly:
> FInally, how can I change the print report default to "marked card" 
> instead of "all card"?  I don't understand why the default is "all 
> cards". It seems for logical and useful to me that it be "marked cards"  Any
> suggestions?

Having the default be "Marked cards" would cause nothing to print if you 
didn't have any marked cards. What you want is that the setting of 
marked/all cards be saved with the template in the stack.


Martin Gannholm
Apple Computer

Exclaimer!!!   I never said it...Nobody heard me say it...You can't prove 
anything!