Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to dynamically size an image to make it fit into the entire page client area

$
0
0
This example demonstrates how to dynamically change the report control (XRPictureBox) size to make it take the entire report client area and reflect the page changes made by an end-user. In fact, this example demonstrates how to properly handle dynamic page settings changes. See How to properly handle dynamic page settings changes for more information.

See also:
How to anchor controls to the top-right side when document margins are changed in the Print Preview
Question Comments

Added By: W. Ludcke at: 12/27/2015 4:49:58 PM    

This does not work properly if the report units are set to 10ths of a millimetre because the page settings are all in 100ths of an inch. Even if you scale the units correctly, you end up with some slightly odd behaviour: e.g. if you enter 10 millimetres in to the page settings dialog, it will change it to 9.9mm due scaling and truncation somewhere in the conversion process. Not a huge issue but a little disconcerting for a user to see a different value from what they entered.

Added By: Jannet (DevExpress Support) at: 12/27/2015 11:48:52 PM    

Hello,
To handle your inquiry in the most efficient manner, I've moved it to a separate thread:
How to update a document when a user changes page settings in the case of ReportUnit is set to TenthsOfAMillimeter.
This ticket is currently in our processing queue and will be addressed shortly.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>