Printing Hell (richTextBox)
OK I created all the code for printing the textboxes, lines, labels as I wanted in my form. I can't use me.printform because the format and text in the RichTextBox is poor. Therefore I use something like below.
NOW I have a very weird thing happening, Part of the code is below.
Printer.CurrentY = 360
Printer.CurrentX = 8640
Printer.Print FormBonCommande.TextCodeCollege
Printer.CurrentY = 360
Printer.CurrentX = 9480
Printer.Print FormBonCommande.TextNumeroCollege
Printer.CurrentY = 2640
Printer.CurrentX = 240
Printer.Print ""
RichTextBoxEcole.SelPrint Printer.hDC
Why does the Rich Text Box always print on the very first line of the page all the time. No matter what the currentX, CurrentY is. It seems that the code is always ignored.
Any help?
|