 |
Filbert Level: Guest

|
Re: How to use the printer Object in VB ?
when you use the print object to print, you have to literally re-build the entire form that you want to print, in your head.Then send each item on the form to the print object.
For example, if your header is a rectangle, you have to tell the print object to draw a rectangle at a certain x and y location, then you have to tell it to fill it a certain color, then tell it to print the text that you want in it. Every single little thing on your form you have to do this way. It really isnt as bad as it sounds, cause you can create a routine that does all of that automatically. If this sounds like the info your after, reply here and i'll send you the routine that will print almost everything you need,almost. You still can modify it even further than it is, but i think it'll help you.
|
|
21-12-2002 at 11:18 PM |
|
|  |
|
|
mrholtsr Level: Guest

|
Re: Re: How to use the printer Object in VB ?
quote: Filbert wrote:
when you use the print object to print, you have to literally re-build the entire form that you want to print, in your head.Then send each item on the form to the print object.
For example, if your header is a rectangle, you have to tell the print object to draw a rectangle at a certain x and y location, then you have to tell it to fill it a certain color, then tell it to print the text that you want in it. Every single little thing on your form you have to do this way. It really isnt as bad as it sounds, cause you can create a routine that does all of that automatically. If this sounds like the info your after, reply here and i'll send you the routine that will print almost everything you need,almost. You still can modify it even further than it is, but i think it'll help you.
I would also like to have this information. And thanks in advance. I am trying to program VB5 to print all the records in my dataset which is a library inventory. So far I can only get it to print one record at a time and each record is on a seperate sheet of paper which takes a lot of paper as I have a lot of books. Ray
|
|
08-01-2003 at 01:47 AM |
|
|  |
|
|
|
|
 |
 |