Avatar of keymac
keymac
Flag 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.
Crystal ReportsImages and Photos.NET ProgrammingVisual Basic.NET

Avatar of undefined
Last Comment
keymac

8/22/2022 - Mon
Ariful Ambia

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
Éric Moreau

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
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
keymac

ASKER
Unfortunately I don't have a FORMULA BUTTON on the PICTURE Tab
 Click the FORMULA BUTTON
 Formula will be
    {?ImageParameter}
Your help has saved me hundreds of hours of internet surfing.
fblack61
Mike McCracken

What version of Crystal?

mlmcc
keymac

ASKER
What version of Crystal?
 I'm using VS2010
Mike McCracken

DId you download the CR for Visual Studio?

mlmcc
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
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