大家好,
我有一個腳本,試圖獲取列的格式,然後將其套用到表格框中的文字方塊。
我嘗試使用這個col_for=col<< Get Format; 但我無法使用它在這個循環中返回的內容
For Each({col_name}, column_names,
col = Column(dty, col_name);
col_for=(col<< Get Format);
insertinto(col_format_text,col_for);
insertinto(col_width,col<< Get Display Width);
insertinto(col_wrap,col << Get Display Width);
);
當我嘗試將 col_for 添加到列表中時出現錯誤。
我這樣做的原因是我稍後會嘗試使用列表來設定文字方塊格式:
for(j=1, j<=n items(column_names), j++,
For(i=1,i<= qty_of_rows, i++,
col_list[j] << append(Text Box(col_var_list[j][i]),<
<SET format=""></SET>
<P><SPAN>我正在編寫的完整腳本如下,目的是能夠輕鬆地將資料表儲存為PDF以便列印。這將抓取資料表的格式並將其應用於表格框的列:</SPAN></P> <CODE class=" language-jsl">dty=current data table();
createdate=today();
column_names=dty<
<GET column="" names="">
<MM>
<DL><DD>
<HH24>
<:>
<MM>
"),<
<SET width=""></SET>
</MM>
</HH24>
</DD>
</DL></MM>
</GET> <P><SPAN>我附上了與該腳本一起使用的表格。</SPAN></P> <BR /> <P><SPAN>感謝您的幫忙!</SPAN></P> <BR /> <P><SPAN>史蒂夫</SPAN></P> <BR />