Quantcast
Viewing all articles
Browse latest Browse all 3636

Dynamic image not showing up with newly added records - Access 2010

I have an application that allows the user to basically build a report, which can include pictures that are pulled into the report using the Graphic Location property of the image in the RPT file.  The application verifies the path of the image selected and stores that path in the database.  When the report is generated, the images are printing on the report very well, with one exception.  With a newly added record in the pictures table, the image is not showing on the report until I close the application completely and restart it.  After restarting the app, everything prints perfectly. 

 

The records are being added to the database using SQL.  I have verified that the connection to the db is being closed and disposed of after the records are added.  The report is showing the path of the correct image the first time it's generated after newly added records, so the rpt file is seeing the data correctly, just not showing the image.  When I close the app and generate the report again, the pictures and everything else shows on the report perfectly every time.  Is there something I can do when connecting to the RPT file before generating the report, or to the database after adding new records to solve this?  I'm kind of at a loss.  The problem is consistent on both my development machine and when deployed to a test machine.

 

I do not see the problem when using the Designer.  When new picture records are added and I refresh the report preview, everything shows as expected.

 

VB.net 2010

Access 2010

CR v14 (v13 DLLs in VS 2010)

Report files are stored externally from the application.  I am using the Viewer on a form to display the report.

 

Looking for any thoughts or ideas on how to solve this.  Thanks in advance for any suggestions.

 

Terry


Viewing all articles
Browse latest Browse all 3636

Trending Articles