Link to home
Start Free TrialLog in
Avatar of Mike Johnson
Mike JohnsonFlag for United States of America

asked on

sql server 2000 image fields not working

I'm using SQL Server 2000 (stored procedure as the datasource), and CR 8.0

I have a stored procedure that has an image field. I see the signature fields in Crystal (to add to the report). CR allows you to add the image field as a "blob". But when I go to run the report... i get the message "Not Supported". Is there anyway to get the image fields to work using a stored procedure. It works fine if I use tabels instead of a stored procedure.  But, there's an issue with processing time. It takes a very long time to produce the report.
Avatar of ebolek
ebolek

You can create a dataset and insert the stored procedure as the datatable of the dataset and then you can create your report woth thye datasource as that dataset. Place the blob field into your reprt

When the dataset is filled, the blob field is going to show your image. This is how i display my images in crystal 10. Hopefully it is the same in 8.5 too.

Regards
Emre
Avatar of Mike Johnson

ASKER

I don't understand what you mean by a "datatable"?  Are you using SQL Server 2000? Perhaps.. if you had a copy of the script you're using I could get a better understanding.
Yes I do in sql you create a stored procedure to get all the fields that you need for the report including blob field

Then you create a dataset from that stored proc
Then you set that dataset as your report's datasource

Place the blob field from the dataset into your report to display the image

That is it
Regards
Emre
Oh ok.. If i'm followig  you correctly... I have a "system odbc"  that points to the stored procedure.  If that what you are referrring to.  I'm using CR 8.0  and its giving me "Not Supported".  Do think its the verions of CR that we are using?
Yes exactly. Make your stored procedure get you all the fields .. Then create a dataset with that stored procedure. Then you are good to go .
That's where the problem arises... when i use a stored procedure as the datasource, CR 8.0 defines the image field as a "blob".  when i try to execute the report i get a blank screen that say's "Not Supported".
the image is stored in db right
yes its stored in the db... not quite sure what you mean by "Then create a dataset with that stored procedure."  How do I create a "dataset" with the stored Procedure?  In CR 8.0 you can reference tables, and stored Proceudres.  where do you reference a dataset? what type is the dataset?  do you have an example of the code?
ASKER CERTIFIED SOLUTION
Avatar of ebolek
ebolek

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial