Image Height Problem

sjr1917

Registered User.
Local time
Today, 08:49
Joined
Dec 11, 2012
Messages
47
I allow the user the option to set a header image (Company logo) in their reports. To implement it I dynamically set the values via the Report's Open event.

Here's the code:
With Me.imgLogo
.Picture = Application.CurrentProject.Path & "\" & TempVars!LogoFile
.Height = TempVars!LogoH
.Width = TempVars!LogoW
.Top = TempVars!LogoT
.Left = TempVars!LogoL
.Visible = True
End With

In the Immediate Window:
?tempvars!LogoH
1.07995
?me.imgLogo.Height
1

Why is Access dropping the fractional part of the value after the assignment?
 
Thanks, CJ
I see now... designers is set to inches, so I got my head set that the .width, .height, etc properties would be too. Integers because at the root level the designers' measure is translated to twips, so don't need decimals.

Got it.
 

Users who are viewing this thread

Back
Top Bottom