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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using BLOB fields as page header logos

Status
Not open for further replies.

jc717

Programmer
Aug 1, 2001
13
US
Hi,

How can I use the BLOB field from 1 record as a logo on all the page headers in the report.
I know that one solution would be to copy the logo into every record, but that wastes too much space.
Is there a way to tell crystal to just use the BLOB from X record for all the page headers?

Thanks,

JC
 
One simple answer would be using a subreport. Have you tried that?

Kelly
kelly.steensma@us.pwcglobal.com
 
How would I go about doing that?

I just need to have 2 different logos on each report. The users will need to be able to choose the logo at run time.

Do you mean the the logos should be sub-reports?


Thanks,

JC
 
Question: Do the logos comes from two different records? I think they would still have to be a subreport.
In the subreport:
place both logos in the report stacked on top of each other. Then enter a suppression formula and a parameter. The suppression formula would be something like this:
If {?Logo Type} = "Flying Elephants" then Flying_Pigs
Else Flying_Elephants

The formula would suppress which ever logo the client didn't want.
Let me know if you still have questions.

Kelly
kelly.steensma@us.pwcglobal.com
 
The thing is that there are a lot of logo possibilities, and the end users should have the option of chosing their own file to act as a logo.

I can add 2 fields to the recordset, 1 for each logo.

I can programatically populate those fields. I run into resource problems if I populate all the records with the BLOBs. I'm wondering if there's a way to tell crystal to only use the BLOBs from record #X for all the page headers.

The workaround I have right now is that I link 2 image files into the report instead of embedding them. I then programatically rename the pictures that I want to correspond to the file names linked to the report.
This works, but I noticed that it takes a while to 'link' OLE objects. BLOBs would yield better performance.

I hope that this explains my situation in more deatail.
Let me know if you have any ideas.

Again, thanks very much for your time.

JC
 
What if you set up a separate table for the BLOBS. You could then have a subreport that accessed this separate table. Based on the results of a parameter, the subreport would pull in the right client logo.

Kelly
 
That will work, thanks very much.

JC
 
How do I go about getting the logo into a SQL 2000 database? I've only got say 1 or 2 images so I hate to sit down and try to learn enough VB interfacing to load it that way - is there a form of INSERT statement or a utility program?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top