I've two problems when I draft on the PrintPreview. They're surely little ones, and I would be thankful, if you can help me.
System:
WinXP
Delphi 2005
PrintPreview 4.61
Settings:
Units: mmLoMetric
1)
If I print with a FontHeight < 50 some of the letters overlap, as you can see on the attached sample3.
I use the font 'Arial' but there is the same problem with all other fonts which have not the same pitch for each letter. I also tried to fix it by using Font.Pitch:= fpFixed.
2)
I draft some rectangles and lines like the following.
- Code: Select all
Rectangle(left,top,left+1000,top+1500);
MoveTo(left,top+300);
LineTo(left+1000,top+300);
And as you can see on the attached sample2 the lines are too long. For the correct display I've to correct the lines with '-2'.
It's the same problem by drafting rectangles (sample1). For the right display I have to correct the coordinates with the '+3' (see the 2 top rectangels of sample1.
- Code: Select all
Rectangle(left+1200,top,left+1500,top+70+3); // KW, Termine, Uhrzeit
Rectangle(left+1200,top+70,left+1500,top+140);
Rectangle(left+1200,top+140,left+1500,top+210);
Rectangle(left+1200,top+210,left+1500,top+280);
If I send the same directly to a printer, there aren't these problems.
Best wishes
Tim