Print Page | Close Window

[solved] markup image by source ID

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=23443
Printed Date: 24 April 2024 at 10:14am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] markup image by source ID
Posted By: hexxa
Subject: [solved] markup image by source ID
Date Posted: 14 September 2017 at 11:32am
Hi!

In 18.0.1 version when i use markup feature with image in item's caption, the image is not visible if the icon is in  ImageManager control.  File reference is working.

Reproduce:

Put a reportcontrol on a Form. (ReportControl1)
Put an Imagemanager on a form. (ImagManager1) 
Put PNG image in ImageManager1 with id 1.

Write code in Form_Load sub 


        ReportControl1.EnableMarkup = True
        Set ReportControl1.Icons = ImageManager1.Icons

ReportControl1.Columns.Add 0, "", 100, True
        ReportControl1.Records.Add
        ReportControl1.Records(0).AddItem ""
        *ReportControl1.Records(0).Item(0).Caption = "<Image Source='1'></Image>"
        ReportControl1.Populate

The image isn't visible.

Replace *marked row
ReportControl1.Records(0).Item(0).Caption = "<Image Source='file://c:/IMG/1.png''></Image>"

The image get visible.






Replies:
Posted By: olebed
Date Posted: 30 September 2017 at 9:31am
Hello hexxa,

Try this
    wndReportControl.Icons.LoadBitmap App.Path & "\Icons\bmreport.bmp", iconArray, xtpImageNormal
 
    wndReportControl.MarkupContext.Icons = wndReportControl.Icons

Regards,
 Oleksandr Lebed


Posted By: hexxa
Date Posted: 02 October 2017 at 5:25am
Thank you! It works!

hexxa



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net