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 picture/OLE object at runtime

Status
Not open for further replies.

scorpio1769

Programmer
Apr 11, 2001
38
US

Trying to dynamically display an image at runtime.

I've got two fields [user.idnumber] and [user.scannedsignaturepathname]. Based off the user id at runtime, I want to set the path name of an picture/OLE object at runtime.

Any ideas on how to accomplish this in a C++ environment.

thanks.
 
I am trying the exact same thing.... did you ever get a resolution for this issue?

Thanks.
 
the only way this can be done (without the use of BLOB fields in a database) is as follows:

With an OLE object in Crystal, I believe the file name and its location is hard coded at design time. I worked on a VB project using Crystal where we wanted a company's logo displayed but wanted it to be dynamic....we had 20 users and didn't want 20 different versions.

We created a special directory on the user's C drive...or you could use the Windows Temp directory....and placed a Logo.bmp file in this directory...the OLE object was created on the basis of this bitmap.

To get a different picture...we replaced the old Logo.bmp with a newer one through our code...but the file NAME could not change OR the Address...just the contents of the file.

It worked well....hope this helps

Jim
 
Make sure that when you add the OLE object you select "Create from File" and then check of "Link" to get it to pick up changes in the object. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top