How can I make the Report Viewer Control responsive - responsive-design

Want to open my report viewer containing a page in a Model popup. When I maximize the Model popup screen, all of the container div are taking width as per the screen width, but the Report viewer is not responsive.
Can any body suggest solution regarding this

You should try this solution
Zoom : Sets the report zoom value as an integer percentage or a string constant. Standard string values include Page Width and Whole Page. This parameter is ignored by versions of Internet Explorer earlier than Internet Explorer 5.0 and all non-Microsoft browsers. The default value of this parameter is 100.
For example in Native mode:
http://myrshost/reportserver?/Sales&rc:Zoom=Page Width
Ref : https://msdn.microsoft.com/en-us/library/ms152835.aspx

Related

Image displaced or absent with ImageViewer

Using the designer. My form has a layout BoxLayoutY. I just drop the ImageViewer in it. I have a pic added through "Add Picture", which is 1080 x 1400. I add it to the ImageViewer.
The "Simulate Device" command gives, in iPhone3:
And in Nexus (the pic below is static: can't be scrolled up or down):
Help?
I have installed the app locally on my Android and I get the same half cut pic as in the screenshot of the Nexus simulator.
The overal goal is to have a single form, scrollable vertically, showing pics (adjusted at the width of the screen) and text.
EDIT:
Could be a problem with the resolution of the pic. I decrease the res to 350 x 467 and it displays fine. So it will pixelize or won't scale to fit the width of the screen on larger devices?
The image viewer doesn't have a preferred size since it doesn't have an image in it. Its designed for usage full screen or within a predetermined layout. If you place it in the center of a border layout it will take up available space and work as expected.
Since it scales the image and allows manipulation of that images size, its size is flexible. If you want a component that takes up the exact image size you should use a Label.
Ok got it!
What I was doing wrong was that I had:
MainForm (in a BoxY layout)
-> a container nested in it (in Borderlayout)
---> an ImageViewer nested at the center of it.
This produced the effect above (half cut pic).
Instead, what achieved a properly sized pic was:
MainForm (in a BorderLayout).
-> The ImageViewer nested at the center of it. That's it, no container.

Colorbox fluid layout only on mobile

I need to have colorbox window with static width (it is actualy dynamic - depends on css specified width or image actual width etc...) except mobile version. I'm doing responsive website. When I resize browser window it always have fixed width, but when I'm on mobile the colorbox window is wider than broser window - it doesn't resize to fit the browser window screen. I apply this:
$(window).on('resize', function(){
$.colorbox.resize({width: '100%'});
});
This help, but if I return to non mobile device or when I resize browser window it stays at 100%. But at this point I want to return colorbox window to have static width as previous. Keep in mind that previous width is based on content width (image width) or css specified width.
Any idea how to do this?
Thanks
Why do you only want the colorbox to be 100% width when user resize the window? Notice what you did in your JS is not detecting whether user is on a mobile device.
It seems like you should use media queries instead. Read more here: https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries

Composite C1 - Image Compression

I have a Composite C1 site - a client is uploading photos to blog posts.
The photos are huge - 1.5MB. Is there a module to compress them (size & dimension wise)?
The crop module only crops & doesn't resize.
I have not found any such modules on Google. Thanks
UPDATE
I have added an aspect ratio - but it is greyed out (LPFF Preset Wide):
To simply resize an image (manually) already in the media archive:
Open it in the built-in Image Editor (in the Media perspective).
Image / Scale image... (or click the Scale button on the toolbar - 2nd from the left)
You can also crop the image in the same Image Editor:
Click the top button ("Select") on the floating bar. (The crop button on the toolbar will get enabled.)
Use the cursor to select an area on the image.
Click the crop button on the toolbar (3rd from the left)
If you are running a recent version of Composite C1 you can resize images you include in the Visual Editor either by pulling the corner of the image or invoking the image properties dialog and set a max width or height (advanced tab).
If you need a code centered fix you can append ?mw=100&mh=100 to the image URL and your image will be automatically resized.
In Composite C1 4.1 you can append ?q=80 to JPEG image URLs to have the web server do compression. The number controls the image quality (100 highest).
All these features are part of the standard open source product.

Reportviewer: Unable to set Interactive height to 0

I am using reportviewer 2010 Winforms
In normal mode, I want the entire report to display in one page only. I read different topics and learnt setting the Interactive height property to zero might do the trick.
I believe I could set the INterative height by clicking on a tablix -> In Properties window, there's a Size which has Width and height. However when I set the height to 0, it reverts back to the previous inches which was there before.
I need help with how to set the Interactive page height? Is this set at report level or for each tablix inside the report?
I believe the width and height setting in Report => Report properties is for physical rendering (PDf) and not for logical rendering (Html in normal mode).
Thanks in advance.
Nevermind, I was able to figure it out. I had to bring up the Report properties by clicking somewhere outside the report in the rdlc file. In the properties, I was able to find Interactiveheight and I set it to 0.

Firefox and Silverlight

I'm developing a silverlight site, using deepzoom.
When I call a function to ArrangeImages(), in IE, the image arranges correctly, using 100% of the screen. In Chrome it works as well.
In Firefox, though, the msi container only uses around 80% of the screen. I'm resizing it using these 2 lines of code below:
msi.Height = App.Current.Host.Content.ActualHeight;
msi.Width= App.Current.Host.Content.ActualWidth;
Any idea on how to solve this, or why the heck is this happening?
Thanks for your help.
I'm guessing that the problem is either:
The Silverlight object tag or Javascript is using a 100% height and width div, which doesn't work in Firefox unless all the parents have height and width set. You can verify this is the problem by setting a background color for the entire Silverlight object. If so, you can either specify a pixel height and width, or you can make sure height and width are set for all the parent elements for the Silverlight object.
You may be setting the height and width before they're available. It's recommended that you access them in the OnResize event (see the "Important Note" on this MSDN page). What event are you setting them from?

Resources