Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - [solved] markup image by source ID
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved] markup image by source ID

 Post Reply Post Reply
Author
Message
hexxa View Drop Down
Groupie
Groupie


Joined: 02 December 2010
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote hexxa Quote  Post ReplyReply Direct Link To This Post Topic: [solved] markup image by source ID
    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.



Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
hexxa View Drop Down
Groupie
Groupie


Joined: 02 December 2010
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote hexxa Quote  Post ReplyReply Direct Link To This Post Posted: 02 October 2017 at 5:25am
Thank you! It works!

hexxa
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.