Strange behaviour when printing outside db.
Quote:
> Here is some of my relevant code :
> SaveY as integer
> SaveY = Printer.CurrentY
> Printer.Orientation = vbPRORPortrait
> Printer.FontName = "Miriam Fixed"
> Printer.ScaleMode = vbCharacters
> [snip]
> printer.CurrentY = SaveY
That's "air code". It's never seen the inside of the VB6 IDE. You need to
post your actual code, by copying it from your VB project and pasting it
into your newsgroup message, so that we know that the code you are posting
is exactly the same as the code you are actually using. Also you have not
shown us some important parts of your code where you are setting up the
printer, so we don't know exactly what you are doing. For example, where are
you setting the size of the font?
Regarding that Printer.RightToLeft setting, are you using a system on which
that actually works? If you follow that line with MsgBox Printer.RightToLeft
then what do you see in the message box?
Also, do you realise that using Printer.ScaleMode = vbCharacters does NOT
set the scale units to the actual size of the characters. It in fact sets
the scale units so that each unit is 6 points in the horizontal direction
and 12 points in the vertical direction, regardless of the name of the font
or the point size of the font you are using. So, unless you understand
exactly what a ScaleMode of vbCharacters does then it might be wise to avoid
using it. Personally I would suggest that you use a ScaleMode of vbInches or
vbCentimeters or whatever normal real world measuring units you are most
comfortable with. Then the scale units will be the same size in both the
vertical and the horizontal direction and also you will easily be able to
visualise exactly where things will end up on the page.
Post more of your code, and make sure it is your actual code taken directly
from your VB IDE.
Mike