LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (July 1996, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sun, 21 Jul 1996 00:03:23 -0700
Reply-To:     Don Stanley <dstanle@IBM.NET>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Don Stanley <dstanle@IBM.NET>
Organization: Don Stanley Consulting Limited
Subject:      Re: Printing SAS/AF Frame Data Tables

Andy Ratcliffe wrote: > > Hi, > > I have a data table that I'd like to allow the user to print. The > standard facility provides a half-decent print of it, but it's shoved > over to the left side of the page and I'm not able to add a heading.

This is the default action, and is based on how you set up the table justification. Read on for details.

> > The table editor has a _begin_print_ method which the documentation says > can be used for adding headings. It doesn't go any further than that with > regard to telling you how to do it. Can anybody offer any suggestions or > experience please?

You can override the method easily enough by getting the tables DATAID from its list and using a per instance override on that. But as you say, getting anything useful to print out is difficult. I tried submitting a proc gprint to print a title but no good.

> In addition, how do I get the table to print centrally on the page?

The print characteristics follow the table justification which is set up in the CUSTOMISE TABLE--JUSTIFICATION-- attribute box. You should set JUSTIFY to TABLE and HORIZONTAL to CENTRE. However theres a trap here, the setting is ignored unless you select the PRINT SETUP option and choose ALL for pages. You can bypass that by overriding the _PRINT_ method for the table, and setting the OPTIONS list to have the AREA named item set to ALL. If you do not want the displayed table to have table justification set to centre, change it using the _SET_TABLE_HJUST_ method from your _PRINT_ override, and change it back after the _PRINT_ is completed.

I'm just learning about data tables myself and finding it quite poorly documented. Can I make a plea to anyone using them to document things that look of interest by posting to the net.

> > I realise that the table is printed as a graphic, which complicates > things. > > Thanks in anticipation f any help...

Not a problem. A good learning exercise ...

> > Andy Ratcliffe > Freelance SAS consultant

Don ==========================+++++==========================================Don Stanley -- AUTHOR: Beyond The Obvious With SAS Screen Control Language Don Stanley Consulting Limited NEW ZEALAND DSTANLE@IBM.NET


Back to: Top of message | Previous page | Main SAS-L page