Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically change Jpeg Picture

Status
Not open for further replies.

demoman

Programmer
Oct 24, 2001
242
US
I am creating a monthly report we send to our customers. I would like to add their logo to the page header. The report runs in batch mode (spits out one report per customer). Is there a way to change the picture during runtime? or, am I stuck with storing the image as a BLOB? If given a choice, I would prefer to just change the file path/name.

Thanks
 
This is rather ugly (really ugly if you have TONS of images) but should work.

Add (import) all of the logos into the report and supress them based on the customer name

Example: "Logo A" would be CONDITIONALLY supressed where customer_name <> "Customer A".

-- Jason
"It's Just Ones and Zeros
 
If you have version 11 you can do this directly based on the path. In older versions you don't have many options. There is also CviewImage which has a DLL that allows this in older versions.


Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guides for Formulas, Parameters, Subreports, VB, .NET, Tips and Tricks
 
You also may be able to extend my originally thought (conditional supression) with this


Seems like you could create a formula that said something like:

if customer = "A" then image_location1
else if customer = "B" then image_location2
etc
etc

-- Jason
"It's Just Ones and Zeros
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top