Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21136

Formatting grid data for dos printing. Help Needed!!

$
0
0
Hi-all:wave:
I have data in my grid (farpoint spread or msflexgrid) in vb6 applications which I need to print in tabular form (bills etc.) with headers and footers or some other
details. I have tried all the built in functions to carry out formatting but they are not working. Sometimes there are no column lines,row lines and sometimes i am not
able to add headers or additional data.

What i am doing currently is getting the length of the longest value/text in each column,setting the '|' character for borders with that length apart and laying out data
each line. This gets extremely tedious. Sometimes I have to align each row in a column right if it contains numeric data and middle if it contains dates or exclude
some columns etc. Then I print this text file with command from vb6.

What I need is any simple logic to add some details like shop name,customer name,bill date and then write a table with data from my control. Something like laying out
data in an html file with table and printing it in a dos printer. (When I try this, whole html code gets printed).

Viewing all articles
Browse latest Browse all 21136

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>