Reputation: 8431
I would like to add an image to a crystal report at runtime.
I am currently doing this using a second data table containing only a byte field and then a blob field on the report. However this feels like a hack and if there is no data in the first primary table then for some reason the image does not show.
Is it possible to add an image with code or another method?
I'm using crystal reports for visual studio 2010. Winforms project. Either C# or VB.
Upvotes: 7
Views: 17497
Reputation: 17208
If you want to store the logo on disk instead of in the database:
At runtime, Crystal will substitute the image from the file.
If you want, you can use a parameter field in your formula. That way you can provide the path programmatically at runtime.
Upvotes: 9