fit (2,074)


How can I dynamically center an image in a MS Reporting Services report?

Out of the box, in MS Reporting Services, the image element does not allow for the centering of the image itself, when the dimensions are unknown at design time. In other words, the image(if smaller…


sql server - Optimizing the PDF Export of Huge Reports in Sql Reporting Services 2005

First off I understand that it is a horrible idea to run extremely large/long running reports. I am aware that Microsoft has a rule of thumb stating that a SSRS report should take no longer than 30 s…


Resize transparent images using C#

Does anyone have the secret formula to resizing transparent images(mainly GIFs) without ANY quality loss-what so ever? I've tried a bunch of stuff, the closest I get is not good enough. Take a loo…


javascript - Making an iframe take vertical space

I would like to have an iframe take as much vertical space as it needs to display its content and not display a scrollbar. Is it at all possible ? Are there any workarounds?…


How do I make an HTML page print in landscape when the user selects 'print'?

We generate web pages that should always be printed in landscape mode. Web browser print dialogs default to portrait, so for every print job the user has to manually select landscape. It's minor, but…


css - Getting image to stretch a div

How can I get an image to stretch the height of a DIV class? Currently it looks like this: http://i36.tinypic.com/34osrdg.png However, I would like the DIV to be stretched so the image fits properly,…


ios - How do I size a UITextView to its content?

Is there a good way to adjust the size of a UITextView to conform to its content? Say for instance I have a UITextView that contains one line of text: "Hello world" I then add another line of text: "…


CSS: Textbox to Fill Parent Container

I'm trying to let an<input type="text">(henceforth referred to as “textbox”) fill a parent container by settings its width to 100%. This works until I give the textbox a padding. This is then added…


How to detect true Windows version?

I know I can call the GetVersionEx Win32 API function to retrieve Windows version. In most cases returned value reflects the version of my Windows, but sometimes that is not so. If a user runs my appl…


wpf - How to Set Grid Column MaxWidth depending on Window or Screen Size in XAML

I have a 3 column grid in a window with a GridSplitter on the first column. I want to set the MaxWidth of the first column to a third of the parent Window or Page Width(or ActualWidth) and I would p…





size resize width css image how height scale content not