Add an image with transparency to Crystal Reports - crystal-reports

Is it really true that Crystal Reports does not support images that have transparency?
We are using it at work and the guy that does Crystal Reports told me it doesn't support transparency. I couldn't believe it so I've spent the last 20 minutes googling and think he might be right. This seems absolutely incredible in this day and age.
Can anyone please confirm whether or not CR supports transparency, and if so how you do it (we are not limited by the type of image to insert - png, gif etc).
For the record we are using CR version that comes with VS 2008 (version 10.5).

CR doesn't support transparency but you can use a wmf image to solve your problem.
I'm using CR 12 (2008), i need to put an image as signature (as a watermark) on another image.
Example:
Background_image.jpg
Signature_image.jpg
Convert Signature_image.jpg into a wmf file using "Inkscape" (freeware).
In the report, we have "Background_image.jpg" and over it the "Signature_image.wmf" image,
it works great!

Just reached over here while searching for same problem. Unfortunately this is true till this date :(
Answering this question for users who may visit again here.
Transparent background of image is not retained when adding it to Crystal Reports
I achived solution following way.
Painted transperent area with printing page color i.e. white in my case.
I would like to put image in page header and some text over it.
In CR design mode.
right click in page header section -> select section expert
select page header -> click insert
In page header a check "Underlay following sections" -> click ok.
back in design, in section "page header a" include image.
In section "page header b" include text which I would like to show over image (i.e. I am expecting to be transparent).
Hope this helps for future visitors.

There is another work around I tried and was successful. If you want the image as a watermark in your report, use your report as a sub report in the detail section of the main report and keep the image in a main report page header and use the option 'Underlay Following Sections' in the Section Expert. All the lines and texts will appear properly on top of the image.

As AR_Italy said, confirmed that wmf files are the way to go, even though SAP site says transparent images are not supported, so thank you to AR_Italy.
The only thing I would add is that these can be Exported from Adobe Illustrator as well (make sure your image has a transparent background first).

If your Image has a white background AND your lazy just check this out:
Rightclick on your report, select Report and Report options and Check "Retain Original Image Color Depth

Related

How to create a report with logo touching header and detail

I'm trying to create a report as shown below with a logo touching header and detail band... Can someone please help me on where to start with... Even the header end is having a cross lines... do i need to take that as an image or is it possible in ireport tool to have such designs??
I'm new to jasper reporting... Please help me on how to create such report
I'm not sure about crossed lines since it's been a year since my last time using iReports, but I can't remember this kind of attention to the estetic part and I think you should probably use a background image.
Regarding the logo touching header and detail, since I don't think iReport can deal with overlapping bands, I would suggest you to organize your report as shown in the following image.
Header (red part): take care of the whole report non connected to the detail
Detail (green part): just your data
You can handle vertical lines in both bands in order to preserve a sort of frame.
I had to emulate several times this sample. and I've always reached my goal in this way.
Hoping it helps.
FF

Active Reports: Copy paste issue

I have generated a report in active reports.
After the report is dispayed in the report viewer, I copied the report by clicking on the Copy button and tried to paste in a word document.
I have some horizontal lines in my report, when I check the copied data in word, the horizntal lines are over lapping on some of the text dispalyed in report.
Is there any way to overcome this problem?
I have attached the screen shot of the report's actual layout and the issue I am facing after pasting the report layout in a word document.
Regards,
Sujata
![enter image description here][1]
Could you please send your RPX/RDLX file to ComponentOne support using ComponentOne support forum or support E-Mail address supportone#componentone.com? In the meanwhile you may use the following options to get the desired results.
If you are using ActiveReports 8 then you can use the activate the snapshot mode in the viewer, select the content from viewer and this will create an image of the selection. You can later paste image this in Word, Paint, Excel etc. Since this is an image it will be obviously not editable.
If you are looking to get editable content, then you may make use of the RtfExport filter available in ActiveReports.
Hope this helps.

How to control page breaks when we export report in word format

I have a report,when i export report in to the word format in ssrs 2008 r2 ,i lost my charts that are present in to the bottom of the report.I think this due to the page-break that occur.Please suggest me the appropriate solution about that.
please check the image of the report
Go to the properties for the chart and select "Add a page break before." Let me know if you are still having issues after doing that.
I would also try putting all of the items in a rectangle (and adding a page break before on the rectangle itself if necessary).

iReport Import Background Image

I would know how to import a background image on iReport designer 4.1.2.
These are the step I take:
choose View->Report Designer->Import Background Image...
select my png image
choose View->Report Designer->Transform Background Image
click right on image and set Fit page width and Trasparency to 100%
finally click End Transformation
The background image appears properly in the report but when launch the preview it disappears!
What's wrong? I miss something?
PS: I discarded the Background band solution because the image exceed the report margins.
Sorry, I didn't read the question carefully at first. You need to use the background band. Resize your image to be the appropriate size so you can use it. After doing that...
Export to PDF and you should see the background image. Export to XHTML and you should see the background image.
When you export to HTML background images won't display. The FAQ link on the JasperReports page explains things (like this!) that you need to consider in HTML reports.
The background image does not do what you want. It is intended to provide a background while you are editing the report in iReport. It has no effect on the final report.
It seems to be that this iReport's option (Import Background Image) does not affect on report, it is affect on GUI appearance. May be this is a bug.
I did not find ireport.background.image or ireport.background.image.properties properties usage in JR source codes.
The exported report in html format does not contain image (set in ireport.background.image).
You should use Background band for creating watermarks or something else.
I had the same problem as mentioned above. I realized that all you need to do is to:
Make sure the palette is open by selecting Windows > palette
Click on image and it will prompt you to select an image from your browser.
If you want to set the image as the background image, simply shift the image item in the report inspector to the background band.
Using Image option from (Window > Palette) is the better way to display the image in iReport. Keeping the image under Page Header helps to display the image in each page.
I think iReport Background image (view -> Report designer -> Import Background image) option is to use for Pre printed reports. When you need to print report details to pre printed page its very difficult to make alignments and create exact report. For this you can scan the pre printed page and load it as background image (view -> Report designer -> Import Background image) and then align the report parameters as scanned pre printed page. While you printing it automatically remove the inserted background. Please correct me if I'm wrong.
use the background band
Make it of preferable size
Drag the image icon in the pallet into the background band
4.position it i.e centre, lefr or right. save and preview

Reporting Services 2008 Chart DynamicHeight Property Creates Extra Space

I have a bar chart with horizontal bars. I used this article to setup the dynamic height property:
http://blogs.msdn.com/b/robertbruckner/archive/2008/10/27/charts-with-dynamic-size-based-on-categories-or-data.aspx
Everything looks fine in the viewer, but as soon as you go to print layout, pdf, et.al there is about 50% more blank space below the chart.
I've created a sample report (using AdventureWorks DB) to show what is happening. I placed 3 charts with blue backgrounds, each inside its own rectangle with gray backgrounds. The first chart has an expression in the DynamicHeight property, the second chart has a hard coded value in the DynamicHeight property of 8.5in, and the third chart has a blank DynamicHeight and a 8.5in in the normal Height property. I have it return 15 items to place in the chart.
They all look fine in the viewer like I said before, but go to Print Layout and the first and second charts take up twice the space with half of it being blank below the report.
I tried to post the .rdl code, but its too much for the size limit.
I have an open ticket to Microsoft that has been escalated.
We've filed the necessary request to get collaboration from our development team so we should be getting a response regarding this functionality sometime in the next couple days. I'll let you know what they say.
Development has later confirmed it was definitely a bug, now are trying to decide if it is worth it to add to the next cumulative update or wait until SSRS 2010.
The work around until this is fixed, is to place the chart control into a table/tablix.
I added an empty table, deleted the details row and the two extra columns, and added my chart that was giving me problems. Everything appears to re-size correctly now.
try setting up the interactive size, margin and page size. im not sure if it will work but you can try. page size - margin = interactive size. do not exceed from your page size when giving value to your interactive size and margin, this also can cause white spaces in print layout.
hope it helps.
best regards,
cathy