mickey grackin it specialist national institute of standards and technology
DESCRIPTION
WebFOCUS Report Design: PDF vs. HTML. Mickey Grackin IT Specialist National Institute of Standards and Technology. Agenda. PDF versus HTML Discussion Traditional FOCUS Language Behavior General Formatting GRIDs and BORDERs SPACES and GAPs SQUEEZE and WRAP Live Demonstrations - PowerPoint PPT PresentationTRANSCRIPT
Mickey Grackin
IT Specialist
National Institute of Standards and Technology
WebFOCUS Report Design:WebFOCUS Report Design:
PDF vs. HTMLPDF vs. HTML
WebFOCUS Report Design: PDF vs. HTML
2
AgendaAgenda
PDF versus HTML Discussion Traditional FOCUS Language Behavior General Formatting
GRIDs and BORDERs SPACES and GAPs SQUEEZE and WRAP
Live Demonstrations Other keywords
Disclaimer: This presentation should in no way be construed as indicating that WebFOCUS or Information Builders, Inc. are endorsed by NIST or are recommended by NIST or that they are necessarily the best materials, instruments, software or suppliers for the purposes described.
WebFOCUS Report Design: PDF vs. HTML
PDF versus HTML DiscussionPDF versus HTML Discussion
WebFOCUS Report Design: PDF vs. HTML
4
PDF versus HTML DiscussionPDF versus HTML Discussion
They are two different animals HTML Format
What’s a page? I am a “living” document Dynamic Document Half Baked Document from WebFOCUS
PDF Format Must be a page! I am a “Permanent” document Static Document Fully Baked Document from WebFOCUS
WebFOCUS Report Design: PDF vs. HTML
WebFOCUS Report Design: PDF vs. HTML
General FormattingGeneral Formatting
WebFOCUS Report Design: PDF vs. HTML
6
General Formatting – Default BehaviorGeneral Formatting – Default Behavior
WebFOCUS Report Design: PDF vs. HTML
TABLE FILE CARPRINT DEALER_COST RETAIL_COST SALESBY COUNTRYBY CARBY MODELBY BODYTYPEON TABLE SET PAGE NOPAGEON TABLE PCHOLD FORMAT HTML or PDFEND
WebFOCUS Report Design: PDF vs. HTML
7
GeneralGeneral Formatting – Default BehaviorFormatting – Default Behavior
HTML Format One “page” GRID around TITLEs and DATA No SPACE between columns Dynamic column widths
PDF Format Two pages No GRID around TITLEs and DATA GAPs between columns Fixed column widths
WebFOCUS Report Design: PDF vs. HTML
WebFOCUS Report Design: PDF vs. HTML
8
General Formatting – WebFOCUS Style SheetGeneral Formatting – WebFOCUS Style Sheet
WebFOCUS Report Design: PDF vs. HTML
ON TABLE SET STYLE *TYPE=REPORT, ORIENTATION=LANDSCAPE,$ENDSTYLE
FOCUS Language keywords to control formatting of the report elements
WebFOCUS Style Sheet is NOT a Cascading Style Sheet (CSS)
WebFOCUS Report Design: PDF vs. HTML
GRIDs and BORDERsGRIDs and BORDERs
WebFOCUS Report Design: PDF vs. HTML
10
General Formatting – GRIDs and BORDERsGeneral Formatting – GRIDs and BORDERs
WebFOCUS Report Design: PDF vs. HTML
TYPE=REPORT, ORIENTATION=LANDSCAPE, GRID=ON,$
GRID keyword controls border lines around report elements
PDF versus HTML with GRID look different VGRID and HGRID keywords BORDER keywords added in later releases
(will discuss this later)
WebFOCUS Report Design: PDF vs. HTML
SPACEs and GAPsSPACEs and GAPs
WebFOCUS Report Design: PDF vs. HTML
12
General Formatting – SPACES and GAPsGeneral Formatting – SPACES and GAPs
Traditional FOCUS Behavior SPACES – Places N spaces between
columns Column width depends on length of the
Field Format and Title values Very rarely used (if at all) in WebFOCUS SPACES setting Only works with
STYLEMODE=FIXED
WebFOCUS Report Design: PDF vs. HTML
WebFOCUS Report Design: PDF vs. HTML
13
General Formatting – SPACES and GAPsGeneral Formatting – SPACES and GAPs
HTML Format SPACES setting has no affect Cell Spacing and Cell Padding Columns are only as wide as necessary
PDF Format SPACES setting has no affect GAPs separate columns Columns as wide as Field Format or Title
SQUEEZE and WRAP change the column width rules for both HTML and PDF formats
WebFOCUS Report Design: PDF vs. HTML
WebFOCUS Report Design: PDF vs. HTML
SQUEEZE and WRAPSQUEEZE and WRAP
WebFOCUS Report Design: PDF vs. HTML
15
General Formatting – SQUEEZE and WRAPGeneral Formatting – SQUEEZE and WRAP
SQUEEZE=ON Removes unnecessary blanks HTML default behavior
SQUEEZE=OFF Mimics traditional column width behavior PDF default behavior
May be applied to the entire report or on specific report columns for both HTML and PDF formats
SQUEEZE=[number] is also possible
WebFOCUS Report Design: PDF vs. HTML
WebFOCUS Report Design: PDF vs. HTML
16
General Formatting – SQUEEZE and WRAPGeneral Formatting – SQUEEZE and WRAP
WRAP=ON Allows text to word wrap HTML default behavior with GRID=ON
WRAP=OFF Does NOT allow text to word wrap HTML default behavior when
SQUEEZE=OFF or GRID=OFF PDF default behavior
WRAP=ON or OFF very rarely used WRAP=[number] is also possible
WebFOCUS Report Design: PDF vs. HTML
WebFOCUS Report Design: PDF vs. HTML
17
General Formatting – SQUEEZE and WRAPGeneral Formatting – SQUEEZE and WRAP
ON TABLE SET HTMLCSS ON Allows full usage of SQUEEZE and WRAP
for HTML format Translates WebFOCUS Style Sheet to
Cascading Style Sheet (CSS) settings Has no affect on PDF format
WebFOCUS Report Design: PDF vs. HTML
WebFOCUS Report Design: PDF vs. HTML
18
General Formatting – SQUEEZE and WRAP – HTMLGeneral Formatting – SQUEEZE and WRAP – HTML
WebFOCUS Report Design: PDF vs. HTML
TABLE FILE CARPRINT DEALER_COST RETAIL_COST SALESBY COUNTRYBY CARBY MODELBY BODYTYPEON TABLE SET HTMLCSS ONON TABLE SET PAGE NOPAGEON TABLE PCHOLD FORMAT HTMLON TABLE SET STYLE *TYPE=REPORT, ORIENTATION=LANDSCAPE, GRID=ON,$ENDSTYLEEND
WebFOCUS Report Design: PDF vs. HTML
19
General Formatting – SQUEEZE and WRAP – HTMLGeneral Formatting – SQUEEZE and WRAP – HTML
WebFOCUS Report Design: PDF vs. HTML
ON TABLE SET STYLE *TYPE=REPORT, ORIENTATION=LANDSCAPE, GRID=ON,$TYPE=REPORT, COLUMN=CAR, SQUEEZE=2,$ENDSTYLEEND
SQUEEZE=[number] and HTML format Acts like maximum width setting It still WRAPs if necessary
WebFOCUS Report Design: PDF vs. HTML
20
General Formatting – SQUEEZE and WRAP – HTMLGeneral Formatting – SQUEEZE and WRAP – HTML
WebFOCUS Report Design: PDF vs. HTML
TYPE=REPORT, COLUMN=CAR, SQUEEZE=2, WRAP=OFF,$
SQUEEZE=[number], WRAP=OFF and HTML format Locks width of the column Column will not wrap
WebFOCUS Report Design: PDF vs. HTML
21
General Formatting – SQUEEZE and WRAP – HTMLGeneral Formatting – SQUEEZE and WRAP – HTML
WebFOCUS Report Design: PDF vs. HTML
TYPE=REPORT, ORIENTATION=LANDSCAPE, GRID=ON, WRAP=OFF,$TYPE=REPORT, COLUMN=CAR, SQUEEZE=2,$
TYPE=REPORT, COLUMN=MODEL, SQUEEZE=2,$
TYPE=REPORT, COLUMN=MODEL, WRAP=2,$
WebFOCUS Report Design: PDF vs. HTML
22
General Formatting – SQUEEZE and WRAP – PDFGeneral Formatting – SQUEEZE and WRAP – PDF
WebFOCUS Report Design: PDF vs. HTML
TABLE FILE CARPRINT DEALER_COST RETAIL_COST SALESBY COUNTRYBY CARBY MODELBY BODYTYPEON TABLE SET PAGE NOPAGEON TABLE PCHOLD FORMAT PDFON TABLE SET STYLE *TYPE=REPORT, ORIENTATION=LANDSCAPE, GRID=ON,$ENDSTYLEEND
WebFOCUS Report Design: PDF vs. HTML
23
General Formatting – SQUEEZE and WRAP – PDFGeneral Formatting – SQUEEZE and WRAP – PDF
WebFOCUS Report Design: PDF vs. HTML
ON TABLE SET STYLE *TYPE=REPORT, ORIENTATION=LANDSCAPE, GRID=ON,$TYPE=REPORT, COLUMN=CAR, SQUEEZE=2,$ENDSTYLEEND
SQUEEZE=[number] and PDF format Locks width of the column It will truncate if necessary
WebFOCUS Report Design: PDF vs. HTML
24
General Formatting – SQUEEZE and WRAP – PDFGeneral Formatting – SQUEEZE and WRAP – PDF
WebFOCUS Report Design: PDF vs. HTML
TYPE=REPORT, ORIENTATION=LANDSCAPE, GRID=ON, SQUEEZE=2,$TYPE=REPORT, COLUMN=MODEL, WRAP=2,$
TYPE=REPORT, COLUMN=MODEL, WRAP=2,$
TYPE=REPORT, COLUMN=MODEL, SQUEEZE=2,$
TYPE=REPORT, ORIENTATION=LANDSCAPE, GRID=ON, WRAP=1.5,$
WebFOCUS Report Design: PDF vs. HTML
GAPs RevistedGAPs Revisted
WebFOCUS Report Design: PDF vs. HTML
26
General Formatting – GAPsGeneral Formatting – GAPs
WebFOCUS Report Design: PDF vs. HTML
TABLE FILE CARPRINT DEALER_COST RETAIL_COST SALESBY COUNTRYBY CARBY MODELBY BODYTYPEON TABLE SET PAGE NOPAGEON TABLE PCHOLD FORMAT PDFON TABLE SET STYLE *TYPE=REPORT, ORIENTATION=LANDSCAPE, GRID=ON,$ENDSTYLEEND
WebFOCUS Report Design: PDF vs. HTML
27
General Formatting – GAPsGeneral Formatting – GAPs
WebFOCUS Report Design: PDF vs. HTML
GAPs are the space between the column values and the gridlines that surround them on PDF format reports
LEFTGAP, RIGHTGAP, TOPGAP and BOTTOMGAP
Can be used for HTML format when: ON TABLE SET HTMLCSS ON
TYPE=REPORT, ORIENTATION=LANDSCAPE, GRID=ON, LEFTGAP=0,$
WebFOCUS Report Design: PDF vs. HTML
28
General Formatting – GAPsGeneral Formatting – GAPs
WebFOCUS Report Design: PDF vs. HTML
TYPE=REPORT, ORIENTATION=LANDSCAPE, GRID=ON, LEFTGAP=0, BOTTOMGAP=.25,$
ON TABLE SET HTMLCSS ONON TABLE PCHOLD FORMAT HTMLON TABLE SET STYLE *TYPE=REPORT, ORIENTATION=LANDSCAPE, GRID=ON, LEFTGAP=1, BOTTOMGAP=.25,$
WebFOCUS Report Design: PDF vs. HTML
BORDERs RevistedBORDERs Revisted
WebFOCUS Report Design: PDF vs. HTML
30
General Formatting – BORDERsGeneral Formatting – BORDERs
WebFOCUS Report Design: PDF vs. HTML
TABLE FILE CARPRINT DEALER_COST RETAIL_COST SALESBY COUNTRYBY CARBY MODELBY BODYTYPEON TABLE SET PAGE NOPAGEON TABLE SET HTMLCSS ONON TABLE PCHOLD FORMAT HTML or PDFON TABLE SET STYLE *TYPE=REPORT, ORIENTATION=LANDSCAPE, SQUEEZE=ON,$ENDSTYLEEND
WebFOCUS Report Design: PDF vs. HTML
31
General Formatting – BORDERsGeneral Formatting – BORDERs
WebFOCUS Report Design: PDF vs. HTML
Alternative to GRID BORDER keywords allow better control of
gridlines (borders) Consistent look between HTML and PDF Can change border STYLE, COLOR and
thickness of each border line
TYPE=REPORT, ORIENTATION=LANDSCAPE, SQUEEZE=ON, BORDER=LIGHT,$
WebFOCUS Report Design: PDF vs. HTML
32
General Formatting – BORDERsGeneral Formatting – BORDERs
WebFOCUS Report Design: PDF vs. HTML
TYPE=REPORT, ORIENTATION=LANDSCAPE, SQUEEZE=ON, BORDER-LEFT=HEAVY, BORDER-LEFT-STYLE=DASHED, BORDER-LEFT-COLOR=RGB(255 0 255),$
TYPE=REPORT, ORIENTATION=LANDSCAPE, SQUEEZE=ON, BORDER=HEAVY, BORDER-STYLE=DASHED, BORDER-COLOR=RGB(255 0 255),$
WebFOCUS Report Design: PDF vs. HTML
33
SummarySummary
WebFOCUS Report Design: PDF vs. HTML
This is just the tip of the iceberg WebFOCUS offers tremendous flexibility and
control over report design for both the HTML and PDF formats
Find this and more on Information Builders Developer Center Tips and Techniques
WebFOCUS Report Design – Part 1http://www.informationbuilders.com/support/developers/htmlpdf.html
WebFOCUS Report Design – Part 2http://www.informationbuilders.com/support/developers/htmlpdf_part2.html
WebFOCUS Report Design: PDF vs. HTML
34
Questions???Questions???
Tell a Good Joke Now