アリンコネット – あるSEのログ2


2006 年 6 月 26 日

UNIXコマンドをDOSで

カテゴリー: うだうだ – Tags: – teminami 12:05

UNIXコマンドをDOSで使えるらしい。

最近USBの認識できる起動FDというか起動CD-ROMが欲しくて探したらたどり着いた。
このあたりからゲット


A: uxutl23a.zip


basename : Display file namename
bmgrep : Fast pattern matching utility
cal : Display calendar
cat : Concatenate files
cdiff : Context difference
cgrep : Searches file for pattern and display context
chmod : Change file attributes
cmp : Compare two files
comm : Select or reject lines common to two sorted files
cp : Copy files
cpio : Archive files
csplit : Context or line file splitter
cut : Cut data out of a file
USAGE : doc file


B: uxutl23b.zip


date : Display / change date and time
dd : Data copy
df : Display Disk Free space
dirname : Extract directory name from filename
du : Display disk usage
expr : Evaluate arguments as expression
fgrep : Searches file for string
find : Search dir tree for files matching req.
fold : Fold long lines to stdout
fstat : Print file status information
grep : Searches file for pattern
head : Display file headers
ls : List directory


C: uxutl23c.zip


m4 : M4 Macro processor
make : Makefile processor
mkdir : Make path
mv : Move files
od : octal dump
printarg : Print arguments to stdout
printenv : Print environment to stdout
rm : Remove files
rmdir : Remove directories
setschar : Set switch character
sleep : Wait for n seconds
sort : Sort files
split : Split file into n line parts


D: uxutl23d.zip


strings : Display the strings in files
sym Display symbolic info from obj and lib files
tail : Print tail of file
tee : Copy stdin to one or more files and standard output
touch : Change a file’s time stamp or size
tput : Output a termcap string
tr : Translate characters
uniq : Display unique lines
wc : Count number of words in file
which : Display the dir containing a command from PATH

2006 年 6 月 7 日

ActiveReportsにて罫線で囲いたい

カテゴリー: 開発(備忘録) – Tags: – teminami 17:36

ActiveReports2.0という、有償の帳票出力ツールがある。
とても便利なクラスではあるが、罫線で出力した一覧を囲おうとすると件数によって最下行の位置がブレる安易に想像できる。
そこで提供されているサンプルを覗いてみた。

しかし、印刷される位置が合わない。仕方が無いので、すべての値をチェックしてみることに。まず、ページの縦方向のサイズ・・・インチだから2.54倍してcmにして・・・いきなり違う!?

なんと、PageSettings.PaperHeightというプロパティは用紙方向と連動していない!?
サンプルは確かにA4縦なのだが、自分の作っている帳票はA4横だった。
とりあえず、rpt.PageSettings.Orientationの値を元に用紙方向に影響されず高さを関数を作る。
ちょっと心配なのはrpt.PageSettings.OrientationにDefaultという値のとき用紙方向はどちらになるかだ・・・