VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Column Print

Mark Hunter  (2 Submissions)   Miscellaneous   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

Print in columns to a printer or adapt this code to print to a form. First character alignes in a column for each row. No "Space(##)" and no grid.
The project I am working on needed to be able to print an unforseen number of single words enterd by the user, whether 5, 25 or 100 and it should be neat and consistant. This code is a cut down version of my sub to show the principle and can be easily adapted. My thanks go to Harvest R for a tutorial(80647232000.zip) I downloaded in Aug/00
which I highly recomend. I hope this code can be used as a learning aid.

Assumes
In the code ### would be a veriable in another part of your program. I also have a limit on the Text Box where words are typed in, to make sure they will fit into the 48mm column width I have set. This can easily be changed to suit your own needs, 2 columns 3,5,12 whatever.

Rate Column Print (3(3 Vote))
Column Print.bas

Column Print Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters