Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     PCHOLD FORMAT PDF OPEN NOBREAK
Go
New
Search
Notify
Tools
Reply
  
PCHOLD FORMAT PDF OPEN NOBREAK
 Login/Join
 
<Vipul>
posted
Has anyone seen this behave wierd. I have a program which is like this:


TABLE FILE XXX
SUM...

ON TABLE FORMAT PDF OPEN NOBREAK
ON TABLE SET STYLE *
-INCLUDE STYLEV02IR.FEX
ENDSTYLE
END
-RUN
-LOOP

TABLE FILE YYY
SUM...

ON TABLE FORMAT PDF NOBREAK
ON TABLE SET STYLE *
-INCLUDE STYLEV02IR.FEX
ENDSTYLE

END
-RUN
-GOTO LOOP
TABLE FILE ZZZ
SUM...

ON TABLE FORMAT PDF CLOSE
ON TABLE SET STYLE *
-INCLUDE STYLEV02IR.FEX
ENDSTYLE
END
-RUN
The NOBREAK give me problem. With nobreak I get that the file is damaged but if I remove the nobreak I get the report but...that's not what i want.

Any Ideas.

Vipul

This message has been edited. Last edited by: <Mabel>,
 
Reply With QuoteReport This Post
<Pietro De Santis>
posted
 
Reply With QuoteReport This Post
<Vipul>
posted
Yes I did try the sample from IBI and it worked, but mine does not if I put the NOBREAK.

Vipul
 
Reply With QuoteReport This Post
Gold member
posted Hide Post
I recall having played around with this in earlier release (i guess 436). I also recall having made the expierience, that it only worked properly, if the compound document was not more than ONE page. Otherwise it either resulted in nothing or a mess or having confusions about applying styles. And also you have to make sure that the ORIENTATION on every doc embedded in the compound one was the same, i.e. no mixing of LANDSCAPE and PORTRAIT.
For me it turned out to be a safer way not to use nobreak !
But I also never tried it again in the latest releases.
Frowner
 
Posts: 54 | Location: Switzerland | Registered: May 13, 2003Reply With QuoteReport This Post
<Vipul>
posted
Thanks Ronald,

This is what I use all thro the reports.
TYPE=REPORT, PAGESIZE=A4 , ORIENTATION=PORTRAIT , SQUEEZE=ON ,$

Vipul
 
Reply With QuoteReport This Post
<Pietro De Santis>
posted
This works:

-SET &ECHO=ALL;

SET PAGE =
NOPAGE
-RUN


SET COMPOUND = OPEN NOBREAK
-RUN

TABLE FILE CAR
SUM SALES

BY CAR
ACROSS COUNTRY

HEADING
"Sales Report"

" "
ON TABLE PCHOLD FORMAT
PDF

ON TABLE SET STYLE *
UNITS=IN, PAGESIZE='Letter', SQUEEZE=ON, ORIENTATION=LANDSCAPE, $

TYPE=HEADING, SIZE=13, $
TYPE=REPORT, FONT='Arial', SIZE=11, COLOR=RED, $
ENDSTYLE
END
-RUN


SET COMPOUND = NOBREAK
-RUN

TABLE FILE CAR
SUM DEALER_COST
BY MODEL
ACROSS COUNTRY

HEADING
"Inventory Report"
" "
ON TABLE PCHOLD FORMAT PDF

ON TABLE SET STYLE *
UNITS=IN, PAGESIZE='Letter', SQUEEZE=ON, ORIENTATION=LANDSCAPE, $
TYPE=HEADING, SIZE=13, $
TYPE=REPORT,
FONT='Arial', SIZE=11, COLOR=GREEN, $

ENDSTYLE
END
-RUN<
-SET &TEMPDIR = 'C:\Temp\';
-SET &GIFFILE=&TEMPDIR || 'CARGR.GIF';
SET COMPOUND =
CLOSE
-RUN
TABLE FILE CAR
PRINT CAR
HEADING
"Car List"
" "
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET PAGE OFF<
ON TABLE SET STYLE *

UNITS=IN, PAGESIZE='Letter', SQUEEZE=ON, ORIENTATION=LANDSCAPE, $

TYPE=HEADING, SIZE=13, $
TYPE=REPORT, FONT='Arial', SIZE=11, COLOR=BLUE, $

ENDSTYLE
END
-RUN
I did notice that if the last (closing)
report does not create any output, the
compound PDF file does not get closed and hence the error.

I hope this helps.

Pietro.

This message has been edited. Last edited by: <Mabel>,
 
Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     PCHOLD FORMAT PDF OPEN NOBREAK

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.