hansu
Programmer
- Mar 12, 2002
- 89
To print out data from a recordset I created a picturebox in order to offer a print preview to the user. The positioning of the text works fine with the print method. For multipleline text I used the API function DrawText which also positions the text correctly in the picturebox.
To print it out I set the picturebox to the printer object.
The text created with DrawText looses now the positioning and appears in the upper left corner. I am new to API functions. Can I use DrawText to print out and how does it have to be done?
Thanks for your assistance.
To print it out I set the picturebox to the printer object.
Code:
Dim ob as Object
Set ob = Printer
The text created with DrawText looses now the positioning and appears in the upper left corner. I am new to API functions. Can I use DrawText to print out and how does it have to be done?
Thanks for your assistance.