Hi all
My PB application send information to RDLC report
application and here I am facing some problems to converts
Units/ Pixels to Inches because RDLC report is not able to
understand then Units/ Pixels
I have formula to convert PB Units into Pixels.
For X and Width = Units / 4.571429
For Y and Height = Units / 4
I am looking for formula to convert PB Units/Pixels to
Inches.
How about using pixelstounits() and unitstopixels() ?
>
>
>
> I am looking for formula to convert PB Units/Pixels to
> Inches.
You will need to go to the API - which may be daunting
http://social.msdn.microsoft.com/Search/en-US/?query=convert%20pixels%20to%20inches&ac=2
http://msdn.microsoft.com/en-us/library/dd144877(VS.85).aspx
One way to figure out your DPI is to use some math.
W = Width in Pixels
H = Height in Pixels
S = Diagonal Size in Inches
SQRT(W^2 + H^2) / S
SQRT(1280^2 + 1024^2) / 17 = 96.42 DPI
"Scott Morris" <bo...@bogus.com> wrote in message
news:4a1e7eb7$1@forums-1-dub...
One way to figure out your DPI is to use some math.
W = Width in Pixels
H = Height in Pixels
S = Diagonal Size in Inches
SQRT(W^2 + H^2) / S
SQRT(1280^2 + 1024^2) / 17 = 96.42 DPI
"Scott Morris" <bo...@bogus.com> wrote in message
news:4a1e7eb7$1@forums-1-dub...
Good luck,
Terry and Sequel the techno-kitten
*********************************
Build your vocabulary while feeding the hungry
http://www.freerice.com
*********************************
Newsgroup User Manual
=====================
TeamSybase <> Sybase employee
Forums = Peer-to-peer
Forums <> Communication with Sybase
IsNull (AnswerTo (Posting)) can return TRUE
Forums.Moderated = TRUE, so behave or be deleted
*********************************
Sequel's Sandbox: http://www.techno-kitten.com
Home of PBL Peeper, a free PowerBuilder Developer's Toolkit.
Version 4.0.4 now available at the Sandbox
PB Futures updated June 25/2008
See the PB Troubleshooting & Migration Guides at the Sandbox
^ ^
o o
=*=