Adding a background image to an SSRS 2012 report - ssrs-2012

I am trying to add an image so that it will work as a background for my ssrs report. I would also like it so that it doesn't cover up anything on the report, like in Word when you wrap an image to go behind the text. And is there a setting that would have the image fit to the entire page? Thanks!

In report design view, select the report item to which you want to add a background image.
If the Properties pane is not visible, on the View tab, select Properties.
In the Properties pane, expand BackgroundImage, and then do the following:
For an embedded image:
Set Source to Embedded.
Set Value to the name of an image that is embedded in the report.
For an external image:
Set Source to External.
Set Value to a valid path to an image. This can be on a report server in native mode or SharePoint integrated mode, or it can be on any other Web site
For an image is that is contained in a field in the database to which the report item is connected:
Set Source to Database.
Set Value to the name of a field in the report dataset
For MIMEType, or file format, select the appropriate MIME type for the image-for example, .bmp.
For BackgroundRepeat, select an expression, Default, Repeat, RepeatX, or RepeatY, or Clip.
For background images in a chart, BackgroundRepeat can be set to Default, Repeat, Fit, and Clip, but not RepeatX or RepeatY.
Thanks.

Related

Refresh text size/layout in PowerPoint/PPTX with OpenXML.Presentation

I made a PowerPoint template where one of the text boxes is configured with a font size, a fixed height and width, and "Shrink text on overflow".
I read the PPTX in a web service, replace the text inside the text box, and send the finished document to the client. Regularly the text inside the box is more than would fit within the box with the default font size. However, when the PPTX from the server is opened by the client, the text is still overflowing outside the bounds of the text box. Only after for example duplicating the slide will PowerPoint adapt the font size in the text box to let the text fit.
How can I force PowerPoint to already update the layout when first opening/displaying the document, instead of only when actually modifying the document manually? I tried setting each and every "dirty" attribute inside the slide XML, as I was confident this would force PowerPoint to recalculate the layout, but didn't actually help.
Any ideas on the issue? My only other option would be to open the document via automation on the server and force the layout update there.
Thanks in advance!

placeholder image is displaying in place of first image while loading dynamic image in crystal report

I am trying to insert the images in one of my crystal sub reports. I have tried the following steps:
Insert a placeholder image.
right-click the graphic -> 'Format Graphic' -> 'Picture' tab -> Add a formula under 'Graphic Location'(basically given path of the images from the table).
Run the report.
I all my images get loaded as expected except for the first one. In place of first image, the place holder image is displaying only (which is undesired). I am unable to understand where I am committing a mistake. I am new in crystal report any help this regards will highly appreciated. I am basically developing a Windows application with Visual Studio 2010 and I have CR runtime version CR13_3_0_3.
There may be a number of causes for this problem.
Please try to do the following:
Right-click the graphic -> 'Format Graphic' -> 'Common' tab -> Make sure "Can Grow" is ticked and "Lock Position And Size" is unticked.
Try enlarging the section size so the picture could fit.
Make sure whether the formula that brings the picture from the table is 0-based or not.
You can try switching between a picture that does show and the one that doesn't in order to understand whether the problem occurs due to the picture itself or is it something with your report configuration.

Reporting Services HTML export - image resizing issue

Hello.
In order to execute reports’ rendering into the HTML 4.0 format I use the ReportExecutionService class
In order to get exported report as a stream I use the following code:
var ms = new MemoryStream(connection.Render(format, dev_info, out ext, out mime_type, out encoding, out warnings, out streamIds));
The issue is: when I display the received stream in a browser, the images with the “Fit proportional” property display incorrectly.
The original SSRS reportViewer and my project the images display as in the picture below:
image 1
Image properties in the Designer:
image 2
What configuration settings should I set so that I am able to display exported report with images from my application as in the original SSRS reportViewer?
In my experience the best way to include images in reports is to pre-size the images to the actual size you want them displayed in the report and then set to use "Original Size".
Using "Fit Proportional" often seems to result in poor image quality when the image is resized, it could also be causing the issue you are seeing as well.

How to display pictures in the project resource?

I have a set of small icons and hope to display them in my application when certain condition occurs, for example on sunny day, I display the sunny icon.
I can add the jpg files in the picture, and they seem to be uploaded to phone when I deploy the app. However, I don't know how to access these jpgs in my program.
Could someone help? Thanks a lot!
Check this post about content and resources: http://www.windowsphonegeek.com/tips/wp7-working-with-images-content-vs-resource-build-action
To summarize: You should mark your images with a Build Action of Content or Resource, preferably Content. Now you can reference the Content from your Xaml or in code.
If the Build Action for your image resources is set to Content, then you just specify the Source property for the Image control to the relative path to your images:
this._image.Source = new BitmapImage(
new Uri("/Images/myImage.jpg", UriKind.Relative"));
You can display pictures using the Image element:
<Image Source="/MyImage.png" Visibility="Visible"/>
If you want to switch images according to conditions then you can create multiple images and change each of their Visibility states - or (more preferable) you can create a single image element and change its Source.
Quite how you do this depends on whether you are using databinding or working directly with the UIElements in code behind.

SSRS 2005 How to Print 4" X 3" label as Portrait.. SSRS assumes Landscape

I have a SSRS 2005 report form that is printing to a Zebra ZDesigner TLP 2844-Z label printer. The Interactive and Page sizes are set to 4" wide by 3" high. Since there is no paper orientation in SSRS, it is assuming this to be a landscape report when it should be a portrait thereby printing the labels sideways.
The users are able to export to a PDF and print after adjusting the print settings, but the extra clicks to produce/print the pdf's are unacceptable.
Is there a way to force the print job to print portrait or another workaround/trick to do this?
Can you just set your Page width to be 3" and your height to 4" ? (Not your Interactive Size, your Page Size)
How are you designing the report? There should be a property to modify for paper orientation in the report's properties...
From MSDN
So what defines a portrait vs. landscape report? If the PageHeight is less than the PageWidth, then it is landscape, otherwise it is portrait. It is important to understand that Reporting Services has no notion of the rotation of the paper in the printer. It is up to the applications that consume the output (Acrobat reader, print control) to determine the correct printer settings to best render the specified page size.
Note that the DeviceInfo settings can be used at report rendering time to override the page sizes in the definition. This is how the client print control works when you change margins or page size. In SP2 and SQL 2005 Reporting Services, the default page sizes are extracted from the definition at publish time and written to the ReportServer database as custom properties on the report. While you can programmatically change these via the SetProperties method on the web service, they will be overwritten if the report is republished (unlike parameter and datasource information).
I have a similar printer with a similar problem. Change the report orientation to portrait (the numbers will be backward). Then when you run the report click page setup. Change the size from "USER" to either "custom" or "template" (depending upon your printer). You should then be able to use your printer properties to change the size of the labels.
To prevent the SSRS WinForms ReportViewer from rotating your printed labels, use a square page. If the length and width are the same, ReportViewer will not rotate. I found that when I expanded the page size for my 2.5" x 1" label to 2.5" x 2.5", the print was oriented correctly on the stock and there was no waste. Perhaps Zebra's driver clips the blank area.
I also tried designing a rotated label using Text Box's WritingMode = Rotate270. That didn't help.

Resources