Printing data to printer in VB 6
Hi friends i am doing database project for finance and i stuck in one problem.
I want to print like this in printer
Name........................ date:...........
address.................... time :.........
........................
sub:some agreement statements xxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Amount:............
rate of interest:............
signature
All this agreement statements are same for all persons and i want to save this
in file and in doted lines(...........) i want to print the data in specific location
how we can done this in vb .please help me
Re: Printing data to printer in VB 6
http://www.vbforums.com/attachment.p...id=47243&stc=1
You can use Printer.CurrentX and Printer.CurrentY to position your output.
Re: Printing data to printer in VB 6
And if you need to continue a line, or in other words two things on the same line then you use a semi-colon.
Code:
Printer. Print "This is part one";
Printer.CurrentX = 3000
Printer.Print "This prints on the same line with part one"
Re: Printing data to printer in VB 6
http://www.vbforums.com/attachment.p...8&d=1172318327Just A Suggestion: Do you have MS Office? If yes, then create a template in MS-Office and then interact with MS Word to do your printing...
Advantages of doing this: You can use words inbuilt property of wordwrap, Justify, Print Preview etc... Your document will look pretty neat and proffesional... Not only that... you can also have a digital signature on your document :)
Re: Printing data to printer in VB 6
Thank you friends.
How to create template in MS office and how to link to Vb.
And also how to store each person record in file , Is it required to maintain each for each person or single file .
NOTE:I am novice
Re: Printing data to printer in VB 6
Quote:
Originally Posted by arjunpi
Thank you friends.
How to create template in MS office and how to link to Vb.
And also how to store each person record in file , Is it required to maintain each for each person or single file .
NOTE:I am novice
A good place to start with
http://www.vbforums.com/showthread.php?t=358585