473,320 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Please help anyone, dynamic images in CR9 using .ttx and Dataset

Ed
I've search around endlessly for a solution to this problem but have
not found anything yet.

I'm using Crystal 9 with .NET. I am not using a DSR to create the
report. Instead I am creating a report at run-time, using a .ttx file
and using a DataSet as the source.

My problem is that I want to dynamically change an image (user's pic)
on the report based on the user parameter.

Opening up the Crystal Designer does not give me much. I added my OLE
object (Bitmap Image or Image Document) to the form, but there is no
way to specify the source of the image!

Ideally I'd like to pass a file path that specifies the OLE object
source location, but I'll take anything now. I could pass a blob
through the Dataset, but even still, there doesn't seem to be a way to
associate the blob with the OLE object. Has anyone done this before?

Thanks,
ed
Jul 21 '05 #1
1 3052
Ed
Does anyone know how to do this? or is it even possible? I've also
tried to add the following in my ttx:

employee_img blob 5000000 blob sample value

is this even how i'm supposed to put a blob in a ttx? I'm not sure
about the size or the sample value fields. Anyways, I pulled this
blob in the crystal report and whenever i run the report, the OLE
object disappears, regardless of what i send.

On the VB side, i assign the datacolumn as follows:

Dim imgTemp As System.Drawing.Image
imgTemp = System.Drawing.Image.FromFile("c:\pig.jpg")
drRow("employee_img") = imgTemp

There are no compile or runtime errors, however the OLE object never
shows up with or without the image.

any ideas?
ed

le****@hotmail.com (Ed) wrote in message news:<cf**************************@posting.google. com>...
I've search around endlessly for a solution to this problem but have
not found anything yet.

I'm using Crystal 9 with .NET. I am not using a DSR to create the
report. Instead I am creating a report at run-time, using a .ttx file
and using a DataSet as the source.

My problem is that I want to dynamically change an image (user's pic)
on the report based on the user parameter.

Opening up the Crystal Designer does not give me much. I added my OLE
object (Bitmap Image or Image Document) to the form, but there is no
way to specify the source of the image!

Ideally I'd like to pass a file path that specifies the OLE object
source location, but I'll take anything now. I could pass a blob
through the Dataset, but even still, there doesn't seem to be a way to
associate the blob with the OLE object. Has anyone done this before?

Thanks,
ed

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: DD | last post by:
Hello, Could anyone please help me?? Is there somebody who could explain me how to make a connection to a access database with a python cgi script. I would like to use common sql commands in my...
2
by: Sam | last post by:
Hello everyone, I have a table, which contains a picture column, I put URL info into it. "www.myweb.com/1.jpg..." I want to show this picture in my crystal report, I find some samples show the...
3
by: JOSEPHINE ALVAREZ | last post by:
I have this code that I want to use to do a rollover. However, because the company I am doing it for is continually changing the text, I want to be able to use dynamic text to change the text on...
1
by: sleigh | last post by:
Hello, I'm building a web application that will build a dynamic form based upon questions in a database. This form will have several different sections that consist of a panel containing one to...
4
by: moondaddy | last post by:
I have an app where users will upload photos to their shopping cart. When they review their cart I need to include a light weight thumbnail of the image they uploaded. how can I take the image a...
1
by: Ed | last post by:
I've search around endlessly for a solution to this problem but have not found anything yet. I'm using Crystal 9 with .NET. I am not using a DSR to create the report. Instead I am creating a...
0
by: sharonrao123 | last post by:
hello all, I have a parent gridview company and in this one a nested gridview people, Is it possible to allow the user to select one row or multiple rows from the people gridview using a check box...
5
by: loveshack | last post by:
Can anyone help me please (i am quite a novice, but having fun learning). Im not sure if this is an ASP problem, a javascript problem or a browser problem. Firstly, everything i have written...
0
by: Kelly Bert Manning | last post by:
I didn't get any hits when I searched deja for DSN1COPY dynamic allocation so either everyone else had no trouble realizing that this happens or nobody else has ever come across it. I've used...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.