クロスタブに20列と1行があり、縦向きの8 "x 13"で表示されます。印刷すると、最初の14列がページ1の最初の行に表示され、次の14列が最初の行に表示されます。次のページの。
上記の14列を超えて表示する方法は、クロス集計の最初の14列の下の次の行に続きます。
どんなアイデアでも大歓迎です。
これは私のデータウィンドウクロス集計ソースコードです:
release 10.5;
datawindow(units=0 timer_interval=0 color=1073741824 processing=4 HTMLDW=no
print.printername="" print.documentname="" print.orientation = 0 print.margin.left
= 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96
print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes
print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no
print.overrideprintjob=no print.collate=yes print.preview.outline=yes hidegrayline=no
crosstab.dynamic = yes grid.lines=1 grid.columnmove=no selected.mouse=no )
header[1](height=0 color="536870912" )
header[2](height=132 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=60 color="536870912" )
table(column=(type=char(20) updatewhereclause=yes name=substr dbname="substr" )
column=(type=char(20) updatewhereclause=yes name=val dbname="val" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"public.product~" )
TABLE(NAME=~"public.product_parts~" ) COLUMN(NAME=~"public.product_parts.part_name~")
COLUMN(NAME=~"public.product_parts.part_no~") COMPUTE(NAME=~"SUBSTR(public.product.codeno,LENGTH(public.product.codeno),LENGTH(public.pro duct.codeno))~") COMPUTE(NAME=~"'' as itemhead~") COMPUTE(NAME=~"'' as imagepath~")
JOIN (LEFT=~"public.product.codeno~" OP =~"=~"RIGHT=~"public.product_parts.codeno~"
)WHERE( EXP1 =~"public.product_parts.codeno~" OP =~"like~" EXP2 =~":codeno~" )
) ARG(NAME = ~"codeno~" TYPE = string) " arguments=(("codeno", string)) sort="substr
A " )
text(band=header[2] alignment="0" text="@product_parts_part_no" border="0" color="0"
x="146" y="68" height="52" width="137" html.valueishtml="0" name=val_t visible="1"
font.face="Tahoma" font.height="-8" font.weight="700" font.family="2" font.pitch="2"
font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="0" color="33554432"
x="9" y="4" height="76" width="128" format="[general]" html.valueishtml="0"
name=substr visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no
edit.autoselect=no edit.autohscroll=yes font.face="Tahoma" font.height="-9"
font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1"
background.color="536870912" )
column(band=detail id=2 alignment="0" tabsequence=32766 border="0" color="33554432"
x="146" y="0" height="76" width="137" format="[general]" html.valueishtml="0"
name=val visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no
edit.autoselect=no edit.autohscroll=yes crosstab.repeat=yes font.face="Courier New"
font.height="-10" font.weight="400" font.family="1" font.pitch="1" font.charset="0"
background.mode="1" background.color="536870912" )
crosstab(band = foreground crosstabonly = yes
columns = "product_parts_part_no" rows = "substr" values = "case (
product_parts_part_no when product_parts_part_no then product_parts_part_name )"
sourcenames = "product_parts_part_name, product_parts_part_no, substr, itemhead,
imagepath")htmltable(border="0" cellpadding="1" cellspacing="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1"
clientformatting="0" clientscriptable="0" generatejavascript="1"
encodeselflinkargs="1" netscapelayers="0" pagingmethod=0 generatedddwframes="1" )
xhtmlgen() cssgen(sessionspecific="0" )
xmlgen(inline="0" )
xsltgen()
jsgen()
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
export.xhtml()
データウィンドウクロス集計での必要な出力:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
A MGY RBLS WISHI. MILES AND MILES CX FF RVS PCS ADM DROP NOT CS
15 16 17 18 19 20
PHIL AUS GER FRA BULL 1.5oX
ありがとう、ジョン・デイブ