Re: AW: Page Break in Spss

Posted by behnaz shirazi-2 on
URL: http://spssx-discussion.165.s1.nabble.com/Page-Break-in-Spss-tp1078463p1078465.html

Thank you so much .That would be great.I will test it as soon as I get a
chance.

Thanks again
Behnaz


>From: la volta statistics <[hidden email]>
>Reply-To: la volta statistics <[hidden email]>
>To: [hidden email]
>Subject: AW: Page Break in Spss
>Date: Thu, 4 Oct 2007 09:09:51 +0200
>
>Hi Behnaz
>
>There was recently a similar question on the list. The sugested answer was
>using the title command:
>
>TITLE "".
>
>(see: http://listserv.uga.edu/cgi-bin/wa?A2=ind0709&L=spssx-l&P=R22376)
>This should give you a page breake.
>
>Another possibility would be to use a script and call the script through
>syntax.
>This has the advantage that the page break belongs to a visible object in
>the output (and does not waste space).
>
>copy the following script to 'yourPath' and name it Add_PageBrake.sbs.
>
>in the syntax file you envoke the script with the following code:
>
>* This belongs to the syntax file.
>Acrtivate the script by using the following syntax
>SCRIPT file="C:\yourPath\Add_PageBrake.sbs".
>
>
>
>
>* This belongs to the script file.
>Option Explicit
>Sub Main
>
>Dim objOutputDoc As ISpssOutputDoc
>Dim objItems As ISpssItems
>Dim objitem As ISpssItem
>Dim i As Integer
>
>'Acrtivate the script by using the following syntax
>'SCRIPT file="C:\Programme\SPSS\Scripts\ChangeViewer\Add_PageBrake.sbs".
>
>Set objOutputDoc = objSpssApp.GetDesignatedOutputDoc
>Set objItems = objOutputDoc.Items()
>
>i=objItems.Count
>
>Set objitem = objItems.GetItem(i -1)
>With objitem
>.PageBreak = True
>End With
>
>objitem.Deactivate
>Set objitem = Nothing
>Set objItems = Nothing
>Set objOutputDoc = Nothing
>
>End Sub
>
>Hope this helps, Christian
>
>-----Urspr?he Nachricht-----
>Von: SPSSX(r) Discussion [mailto:[hidden email]]Im Auftrag von
>behnaz shirazi
>Gesendet: Mittwoch, 3. Oktober 2007 20:22
>An: [hidden email]
>Betreff: Page Break in Spss
>
>
>Hello Dear All,
>
>Is there anyway to control page break through spss syntax.I want to make
>PDF
>and I want to have control on the number of table or chart within one page.
>
>Do you have any experience ? is it possilbe?
>
>
>Thank you
>Behnaz
>
>Don't just search. Find. Check out the new MSN Search!
>http://search.msn.com/

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.com/