FoxPosView
<p>FoxPosView 是FoxUI提供的专门针对Pos打印预览的可视化组件
特性
<strong>1:支持每行字体风格</strong></p>
<p><strong>2:支持左右居中对齐</strong></p>
<p><strong>3:支持表头和多行表头</strong></p>
<p><strong>4:支持图片</strong></p>
<p><strong>5:支持表格输出</strong></p>
<p><strong>属性</strong>
Color 默认底色</p>
<p>Font 当不指定字体风格的时候默认字体</p>
<p>RowMargin 行间距</p>
<p>Styles 字体风格管理器</p>
<p>SkinSet 皮肤管理
Back 背景图片</p>
<p>PageSize 打印机尺寸 目前支持 58 和 80 两种</p>
<p>PageMode 分页模式浏览</p>
<p><strong>方法</strong>
procedure Clear;//清空
function AddTxtItem:TFoxPosTxtItem;// 加入文本项</p>
<p>function AddGridItem:TFoxPosGridItem; //加入表格项</p>
<p>function AddHeadTxtItem:TFoxPosHeadTxtItem;//加入列表头项目</p>
<p>function AddListItem:TFoxPosHeadTxtItem;//加入列表项</p>
<p>function AddSplitItem:TFoxPosSplitItem;//加入分割符</p>
<p>function AddBlankItem:TFoxPosBlankItem;//加入空白项</p>
<p>function AddImgItem:TFoxPosImgItem;//加入图片项</p>
<p>procedure BeginPrint;//开始打印</p>
<p>procedure EndPrint;//结束打印</p>
<p>procedure SaveBmp(BmpFiile:String);//另存为图片 此功能只能图片输出打印 如果需要支持指令打印参考此过程支持访问区域内容对应输出</p>
<p>procedure EndUpdate;override;//批量加载后请务必调用</p>