[Printer] Cannot position raster images

Dears,

I’m writing a win2k driver for a printer that, in its protocol, has a
command to set the position of a graphical block but doesn’t have the
possibility to set X and Y coordinates separately. The image to be printed
is decomposed by the DDI into several graphical blocks that I send to the
printer as raster images, preceeded by a command that sets the cootrdinates
of each block.

In order to set the position of each image, I’ve used the CmdXMoveAbsolute
and CmdYMoveAbsolute using the DestX and DestY variables. Since I cannot set
each variable separately, I’ve used the following

*Command: CmdXMoveAbsolute { *Cmd : “/E” %4d{DestX} %4d{DestY} }
*Command: CmdYMoveAbsolute { *Cmd : “/E” %4d{DestX} %4d{DestY} }

but I’ve discovered that DestX is not defined inside CmdYMoveAbsolute and
vice-versa. The result is that, for each block, I have two commands that try
to set X and Y coords but the first sets the Y and uses a wrong X and the
second sets the X but destroyes the Y loaded previously.

Does anybody have any idea on how to solve it?

Thanks
Emanuele