Skip to Content

dynamic images in CR for VS2015

Hi,

a report contains an image (OLE object) with “Graphic location” = {@Image_link} (formula), that is dynamically updated from VB2015 as follows:

Dim cryRpt As New ReportDocument

cryRpt.Load("xxxx.rpt")
cryRpt.DataDefinition.FormulaFields ("image_link"). Text = ControlChars.Quote & sPathImage & ControlChars.Quote
crViewer1.ReportSource = cryRpt
crViewer1.Refresh ()

The image is not updated during preview..

Thank you for help.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 12 at 02:31 PM

    What if you create the report with a linked image does that work?

    New report Designers use a database field to link to an image file so it can be refreshed, just add the path in the field data..

    If not it will only look for the image on report load, refreshing will not update the image because you are using the original reports image properties, not linked or not using a database field to get the physical location of the image.

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 21, 2017 at 07:44 PM

    Don't call .Refresh()

    Add comment
    10|10000 characters needed characters exceeded