473,786 Members | 2,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3111
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.go ogle.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
3549
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 python scripts as I can with MySQLdb. But I cannot even connect to the access database (see below). Could anyone explain it to me as simple as possible please. I'm using Windows XP, ActivePython 2.3.2 build 230 and Microsoft access(XP?)
2
13455
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 "static" picture in Crystal report, No "Dynamic" one. Can Crystal Report do that? Thanks in advance. Sam
3
2723
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 the fly, and still have the rollover work. I have taken the text off of the buttons, but cannot figure out how to do it with dynamic text using javascript and html. For example, in the columns of this row, I want to put "About...
1
3152
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 many questions. To keep it simple, I'll describe the basics of what I'm trying to design. I've created a TextBox composite control that consists of a label for
4
1359
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 user uploaded (PixOfMom.jpg at 600k) and convert it to a thumbnail and put into the image url of a .net image control using vb.net 1.1? Thanks! -- moondaddy@nospam.com
1
512
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 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.
0
4668
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 and also get the datakey (in my case personid) of the the rows selected. Please point me in the right direction. This is what i have so far but i have problem accessing the child gridview in the button click event Cheers, Shilpa. <asp:GridView...
5
2690
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 works fine in IE7 and beta IE8. My pages do not work however in Safari or Firefox, and please dont beat me, but i use Frontpage to write my site, and i use iframes as ive not discovered how to do this any differently! So the issue is this, i have a...
0
2235
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 DSN1COPY for years for moving data between z/OS subsystems for testing, and for refreshing tables from Image Copies for regression testing. Developers seem to find it less confusing to use the same JCL to move data between 1 of 14 test...
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10360
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4064
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.