Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

modifying output page titles?

759 views
Skip to first unread message

Lance Hoffmeyer

unread,
Jan 20, 2010, 4:13:56 PM1/20/10
to
Hey all,

I am running some reporting syntax that was sent to me.
There are about 20 tables and each has a page title. I
am using V17 and will be receiving V18 soon.

I need to modify the page title so that:

1) The text is centered
2) Text is bolded
3) Font size is increated to 18

I would like to create some automation so I don't have to manually edit
each page title. I want to be able to perform these actions from a
syntax window.

In addition, I would like to remove row and column word wrappng in the
pivot tables.

What do others use to modify output text and tables? Where can I go for
examples, links, info? Maybe examples from those who have done such things.

TIA,

Lance

JKPeck

unread,
Jan 20, 2010, 6:21:31 PM1/20/10
to

Take a look at the SPSSINC MODIFY OUTPUT extension command. It can do
lots of things with outline and item titles. One little-known fact
about these is that they can be html or rtf (ugh) text, so you can do
reasonable fancy formatting. The extension command uses Python
scripting to implement, but it has standard SPSS-style syntax and a
dialog box interface. If you want to script any of that, it allows
for Python script snippets, so you can let it do all the navigation
and boilerplate stuff and just write the code for specific actions.
But most of the things you want to do with titles and visibility can
be done directly with the command without a script.

Downloadable from SPSS Developer Central, www.spss.com/devcentral.
Requires the Python programmability plug-in. Requires V17 or later
but works better with 18.

HTH,
Jon Peck

Lance Hoffmeyer

unread,
Jan 21, 2010, 1:28:37 PM1/21/10
to
Theoretically,

I should have found simpler solution.

1) In SPSS goto EDIT->OPTIONS->VIEWER->INITIAL OUTPUT STATE
2) 4th,5th,6th Items (Title, Page Title, Pivot Table) change
2.1 Justification = Center
2.2 Font size = 18
2.3 Bold

Works great in the Output viewer. I get centered, bold and increased
font size Titles and Page Titles.

The problem arises when I export to HTML. The format changes do not
carry over into the HTML document. When I open the HTML in Mozilla:

Titles keep their formatting.

Page Titles are no longer centered, bolded, nor do they have the
increased font size?

Any idea why this is happening when I export to HTML?

* Export Output.
OUTPUT EXPORT
/CONTENTS EXPORT=VISIBLE LAYERS=VISIBLE MODELVIEWS=VISIBLE
/HTML DOCUMENTFILE=!DATA + !RAWDATA + "01.21"
NOTESCAPTIONS=YES.


What are the synmbols that appear now on the output viewer? Two vertical
lines with a little black square between the two vertical lines. Top
left corner of each output item (title, page title, pivot table ...).

TIA,

Lance

0 new messages