Hi,
I want to add a StiImage Component by code to my report template and the size of StiImage Component must fit to size of BitmapImage. But I can't find any way to convert size of BitmapImage from pixel to ReportUnit(ect: Centimet....)
Please help me!
How to Convert size of BitmapImage from pixel to ReportUnit
-
- Posts: 11
- Joined: Wed Jun 15, 2011 10:19 pm
- Location: VN
How to Convert size of BitmapImage from pixel to ReportUnit
Hello,
Please check the following code:
Thank you.
Please check the following code:
Code: Select all
StiReport report = new StiReport();
report.Unit.ConvertToHInches
-
- Posts: 11
- Joined: Wed Jun 15, 2011 10:19 pm
- Location: VN
How to Convert size of BitmapImage from pixel to ReportUnit
Hi, thank you
I used the following code:
It work fine.
I used the following code:
Code: Select all
StiReport report = new StiReport();
report.Unit.ConvertFromHInches(image.Width);
How to Convert size of BitmapImage from pixel to ReportUnit
Hello,
Ok.
Let us know if you need any additional help.
Ok.
Let us know if you need any additional help.