Link to home
Create AccountLog in
Avatar of keymac
keymacFlag for Australia

asked on

VS2010 and Crystal Reports Loading Image at runtime

Previously when using VB6 and Crystal Reports I was able to specify the contents of an image at runtime.  This allowed the invoicing app to use the customers letterhead loaded from a jpg on their pc.  I need to be able to achieve the same thing in VB.NET and Crystal Reports (VS2010) but it seems that I have to specify the image at design time rather than runtime.
Avatar of Ariful Ambia
Ariful Ambia
Flag of Bangladesh image

My advice to you not to use Crystal report any more. this product is taken over by SAP. you can use Microsoft Reporting.
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Mike McCracken
Mike McCracken

The image has the option to set the path at run time.

Create a string parameter for the report
You can pass the full path and image to the report using it.

Insert the picture object
Select a default image
Right click it
Click FORMAT GRAPHIC
Click the PICTURE tab
Click the FORMULA BUTTON
Formula will be
   {?ImageParameter}

mlmcc
Avatar of keymac

ASKER

Unfortunately I don't have a FORMULA BUTTON on the PICTURE Tab
 Click the FORMULA BUTTON
 Formula will be
    {?ImageParameter}
What version of Crystal?

mlmcc
Avatar of keymac

ASKER

What version of Crystal?
 I'm using VS2010
DId you download the CR for Visual Studio?

mlmcc
Avatar of keymac

ASKER

The second part of the project shows exactly how to use the blob column type to be used in the report and fits perfectly. Thanks