$(function () { pageContext.i18n.modTalk = 'moderation talk'; pageContext.i18n.replyToComment = 'Reply'; pageContext.i18n.modTalkEmpty = 'moderation talk is empty'; pageContext.url.getModTalk = "/comments/%25ID%25/listModTalk.json"; pageContext.url.possibleCommentRecipients = "/comments/%ID%/possibleRecipients.json"; pageContext.url.commentEdit = '/comments/%25ID%25/edit.html'; pageContext.url.commentView = '/comments/%ID%/view.html'; pageContext.i18n.commentVisibility = { 'full': 'Viewable by all users', 'op': 'Viewable by the original poster', 'mod': 'Viewable by moderators', 'opAndMod': 'Viewable by moderators and the original poster', 'other': 'Advanced visibility', 'dialogTitle': 'Comment visibility', 'selectGroups': 'Visible to groups', 'selectOther': 'Other recipients', 'selectOriginalPoster': 'Original poster', 'selectModerators': 'Moderators', 'selectAssignees': 'Asked to answer users' }; pageContext.i18n.commentMenuLabels = { 'comment-edit': 'comments.menu.edit', 'comment-delete': 'comments.menu.delete', 'comment-convert': 'comments.menu.convert' };pageContext.i18n.answer= { bestAnswer: 'Best Answer', controlBar : { accept: 'Accept', unaccept: 'Unaccept', acceptCommand: 'Accept this answer as correct', cancelAcceptedCommand: 'Remove this answers accepted status' } }; window.croles = { u: false, op: false, m: false, og: false, as: false, ag: false, dc: false, doc: false, eo: false, ea: false }; tools.init({ q: { e: false, ew: false, eo: false, r: false, ro: false, d: false, dow: false, fv: false, c: false, co: false, p: false, tm: false , ms: false, mos: false }, n: { f: false, vf: false, vfo: false, vr: false, vro: false, c: false, co: false, vu: false, vd: false, w: false, wo: false, l: false }, c: { e: false, eo: false, d: false, dow: false, ta: false, tao: false, l: false }, a: { e: false, ew: false, eo: false, d: false, dow: false, a: false, aoq: false, ao: false, tc: false, tco: false, p: false, tm: false }, pc: croles }, { tc: true, nsc: true }); commandUtils.initializeLabels(); }); Skip to Content
0

Html Img tag not working in crystal report

Oct 18, 2016 at 06:10 AM

243

avatar image

Hi All

Here am facing problem with crystal report , i want to show the image in crystal report with html tags like <img alt="TEST" src="assets\TESTIMAGE.JPG" /><b>TEST</b> , image space showing blank and the TEST text showing as bold.

Is there any way to showing image in crystal report, please help me to solve this problem

Regards

Prasanna

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Janos Nagy
Oct 18, 2016 at 06:33 AM
0

Hello,

Please check SAP KBA knowledgebase 1217084 - What are the supported HTML tags and attributes for the HTML Text Interpretation in Crystal Reports?

This shows the supported elements. You need to embedd the images into the report file, this will work.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Janos

Thanks for your replay .. i saw that link , there is no img tag, i used Editor from that i got a code like this

<p> <strong style="margin: 0px; padding: 0px; color: rgb(0, 0, 0); font-family: 'Open Sans', Arial, sans-serif; font-size: 14px; line-height: 20px; text-align: justify;">Lorem Ipsum</strong><span style="color: rgb(0, 0, 0); font-family: 'Open Sans', Arial, sans-serif; font-size: 14px; line-height: 20px; text-align: justify;"> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</span></p> <p> <span style="color: rgb(0, 0, 0); font-family: 'Open Sans', Arial, sans-serif; font-size: 14px; line-height: 20px; text-align: justify;"> <img alt="" src="images\Test1.jpg" style="width: 394px; height: 367px;" /></span></p>

in this all the things working fine without img tag so that am looking for this issue ... u have any idea about this ...

0
Abhilash Kumar
Oct 18, 2016 at 08:25 AM
0

Hi Prasanna,

Instead of using an HTML tag to insert the image, you'd need to use the 'OLE Object' with a 'graphic location' formula that points to the image.

-Abhilash

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Abhilash

Thank you for your replay ... can you sent the link about using " OLE Object with a 'graphic location' formula ", and one more thing , is there any way without fixing the image like picture box and dataset and formula

Thank you ...

0
Abhilash Kumar
Oct 18, 2016 at 08:51 AM
0

Here's what you would need to do:

Go to Insert > OLE Object > Paintbrush picture > OK > Place the object on the details section.

Next, right-click the image > format graphic > picture tab > click the formula button beside 'Graphic Location' and use this code:

'\\assets\TESTIMAGE.JPG'

-Abhilash

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Abhilash

I tried your idea , in my report not showing 'Graphic Location' , here am trying to explain my situation, in this editor client maybe add like this , from the editor i got the code like this

<p> <strong style="margin: 0px; padding: 0px; color: rgb(0, 0, 0); font-family: 'Open Sans', Arial, sans-serif; font-size: 14px; line-height: 20px; text-align: justify;">Lorem Ipsum</strong><span style="color: rgb(0, 0, 0); font-family: 'Open Sans', Arial, sans-serif; font-size: 14px; line-height: 20px; text-align: justify;"> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</span></p> <p> <span style="color: rgb(0, 0, 0); font-family: 'Open Sans', Arial, sans-serif; font-size: 14px; line-height: 20px; text-align: justify;"> <img alt="" src="images\Test1.jpg" style="width: 394px; height: 367px;" /></span></p>

in this all the thinks working fine without img tag , is there any way do like this ...

imsreport-img.jpg (186.8 kB)
0
Patrick Genest
Oct 18, 2016 at 06:56 PM
0

Crystal Reports does not support the HTML tags: <img...
Crystal Reports only support some basic HTML tags for text formatting as specified in the SAP Knowledge Base Article

1217084 - What are the supported HTML tags and attributes for the HTML Text Interpretation in Crystal Reports?

Therefore you cannot use the HTML code you have within Crystal Reports designer to display an image. This is why the only suggestion is to manually add your image withing Crystal Reports designer using the menu insert and insert an image.

What Abhilash refer to, is the option for dymamic image location, and you need to insert the path to where the image is located on a driver, or an a website. The following SAP Knowledge Base Article talked about this feature:

1320507 - How to change images dynamically in Crystal Reports based on parameter selection?

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Patrick Genest

Thanks for your replay ... Patrick Genest ...

0