set the print preview area to the paper size - html

right side print preview .
What I want is that when the browser dimensions change, the right side layout remains the same and the image, text, etc. in the in the same proportion. shrinkage and growth. that is, what appears on an A4 paper, will appear on the right.
sample
I am using Angular and Bootstrap. For printing I use NgxPrintModule.

Related

Hide or reduce the size of preview image

The size preview image is very large. It disturbs the alignment of input field.
I want to either reduce the size of the image only at the time of preview or hide it and show only the selected image name.

SSRS Report Stacked Bar Chart Bar Width changing while printing the report

In the design view of SSRS Report Builder, the developer had set the custom attributes for the bar "PixelPointWidth" to 30.
The width of the bar in the bar-chart is appearing good while viewing the report in the browser. However, when trying to export it to pdf or to print the report, the width of the bar in the bar-cart becomes very thin and the text labels within becomes almost unreadable.
Same scenario happens with stacked-bar-chart as well. Tried changing the pixepointwidth and other related parameters but in-effect the issue remains as is.
I'm not sure why the PixelPointWidth would not be left as default, maybe the developer thought this was the way to adjust the width of the bars (which it does, but not directly).
What you should probably do is set the PixelPointWidth to 0 (default) and then adjust the PointWidth property instead, so that you get the desired width.
PixelPointWidth (I think) sets the datapoint width to an exact number of pixels, depending on how you render the report, that will result in different physical dimensions (150 pixels at 100dpi is roughly 38mm but at 150dpi it's approx 25.4mm)
Here's an exmaple where I set the top bar to PixelPointWidth=40 and the bottom bar to PointWidth=0.5 . In design view, on my monitor, it appears the top bar is slightly smaller than the bottom bar.
When previewed (screen rendering) they appear more or less identical heights.
When I render the report to a PDF they look totally different.
As I said earlier, if you set the PixelPointWidth to 0 (default) and then adjust the PointWidth as a percentage of the default gap between categories then you should get much more consistent results. If you set the PointWidth to 1 there will be no gap between each bar, if you set it to 0.8 (default) then the bar will consume 80% of the space and the gap will consume the remaining 20%

Little empty space at the border on iPhone 5 & 6

So if I visit the page https://viid.su/ on an iPhone 5/6 or use the inspect elemnt tool to visit it on an iPhone, it always has an empty space a the right border, going down the whole page!Also the Shorten button is one px to high than it should be (only on iPhones too).
The text on the button in div id="fh5co-features-2 section is too long for the width of the viewport.
You need to either reduce the font or chop off some of this text: "Create without registration"

From design to code

I am currently struggling at creating a website from a given design.
The design is created with InDesign and will be a one page website. The website has a width of 1280px.
The main problem is resizing, because the design has diffrent layers. Some images consume the whole width and some are centered with a given size and when I resize the browser the elements scale diffrently. Is it possible to put the whole page in a container and position every element absolute (as its done in the design) and then just resize the container. So the page would resize like a image. Are there some techniques in which I could read in?
Here the backlayer uses the whole width and the circle is centered with a given size. Now if I resize the window the beckground scales with a diffrent ratio then the circle.
Background-image now supports multiple images. You could try play around with that. But note browser support needs catching up.
EG
#example1
{
background: url(img_flwr.gif) right bottom no-repeat, url(paper.gif) left top repeat;
}
Depending on your layout, images etc, it may be easiest to just use an editor to combine into one image.

SSRS personal paper size issue

I have a Label with this meassures
Heigth = 8cm
Width = 10cm
And need to print in portrait mode, the problem is that report builder allways change it to Landscape mode
How can I do to force Report builder to accept my meassures without changhing the orientation?
A page that has the top edge longer than the left edge is Landscape; those with a longer left edge than top edge are portrait - that's just the way it is by definition.
What you actually want to do is rotate the output of your table so that when you peel off the label, the text on it is oriented as if it is portrait.
Given you are on 2008 R2 you can set the table cell's WritingMode property to Rotate270. You'll need to resize your cell dimensions to accommodate your text and have your data in columns rather than rows. So your Detail row will be 8cm high and 10cm wide with a number of thin, high columns for your data with the text rotated 270 degrees. Ensure that the report project's TargetServerVersion property is set to SQL Server 2008 R2 or it won't support the Rotate270 option. This should give you the result you are after.
Failing this, you could create a table with a single Detail cell the size of your label, place an image in the cell to fill it and draw the text on that image in the orientation that you want using custom code. Here is an example of how to do this with a code sample.
If you right click the blue background and go to Report Properties, you should see an Orientation selection there. Make sure that's set to Portrait.
If it is already Portrait then the problem is likely to be that the body of your report is too wide for the Paper Size you have selected.