Imagedata print problem

J. Landman Gay jacque at hyperactivesw.com
Thu Jan 24 14:35:15 EST 2008


Something very weird is happening on my client's Windows XP box and I 
wonder if anyone has an explanation.

My app allows the user to select an image, which is then displayed on a 
card. We aren't interested in storing the entire (possibly large) image, 
so we store only the imagedata of the resized card version:

  set the cImage of this cd to the imagedata of img 1

The image is used later in a printout. When setting up the printing stack:

  set the imagedata of img "printImg" to the cImage of cd "storage"

It looks okay on screen. It prints okay on my Mac. It prints okay in 
Windows XP using the virtual PDF driver I downloaded yesterday. But on 
my client's Windows XP box, the image prints completely distorted. He's 
tried with several different images and they all behave the same, except 
the distortions vary. On one image, the printed version is skewed at a 
45 degree angle and offset horizontally by exactly half, so it appears 
to "wrap" around the image container. Using other images, he gets either 
a solid color block or a blurry and distorted combination of various 
colors that don't look anything like an image.

The printout also uses some referenced images from disk which are 
displayed by using the standard "set the filename of img" method. These 
print fine for him, so the problem is just with imagedata.

I just can't reproduce it at all. I have asked him to make sure his 
printer drivers are up to date. Anyone have any ideas?

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list