Board index » delphi » Draw text on printer canvas vs screen canvas
Christian Rocher
![]() Delphi Developer |
Sun, 27 Nov 2005 03:00:22 GMT
Draw text on printer canvas vs screen canvasHi, I try to draw text to print. It work pretty good on a screen device context. But it doesn't work on a printer device context. My text is misaligned an truncated. Somebody can help me to correct it? I use the code : procedure MyForm.PrintContentNextPage(var aRectangle: TRect); f_Canvas.Font.Size := 18; aRect.Top := 0; nHeightNeeded := Windows.DrawText( f_Canvas.Handle, nWidthNeeded := aRect.Right - aRect.Left; Windows.DrawText( f_Canvas.Handle, |