on 02-15-2017 10:35 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The link in the "image_link" formula works correctly and the Crystal Report preview load the new image ..
When I change the value (link) runtime in the program it loads the default image ..
If I use a database field instead of the formula the result is the same..
Some instructions are missing to force the refresh ?
The only solution that works correctly is this:
Don't call .Refresh()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.