固定宽度在vb6中打印 [英] Fixed width Printing in vb6

查看:69
本文介绍了固定宽度在vb6中打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



这是我想要格式化的样本数据



Hi all

This is my sample data i am trying to format

07-Aug-12,By IB-2012220152498-cash ,0,0.00,10938.00,44929.00





以下是代码





Below is the code

Printer.Print Tab(intLINE_START_POS); _
                  strdate; _
                  Tab(intLINE_START_POS + 20); _
                  strparticulars; _
                  Tab(intLINE_START_POS + 55); _
                  strchequeno; _
                  Tab(intLINE_START_POS + 75); _
                  strwithdrawals; _
                  Tab(intLINE_START_POS + 85); _
                  strdeposits; _
                  Tab(intLINE_START_POS + 105); _
                  strbalance





但问题是它不是单行。



你能告诉我这里有什么问题..?



But the problem is it is not coming in a single line.

Can you please tell me what is wrong here..?

推荐答案

你能告诉我你要格式化的原始数据吗? br />
您可以将原始数据格式化为字符串

并打印字符串



可能是您可以使用格式化功能
Can you tell me the original data you want to format?
You can format the original data to a string
and print the string

May be you can use the Format function


这篇关于固定宽度在vb6中打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆