Changing the location of an OLE object to point to somewhere else 
Author Message
 Changing the location of an OLE object to point to somewhere else

I have placed an image in an OLE object that is set to a specific location
with  links.  I want to be able to change the pointed location to another
location (picture) using the crystal activeX control.

I'm not sure how this can be done.  I was not able to find any documentation
in on this issue except on how for it to be initially created in the crystal

Thanx in advance,

Sat, 29 Sep 2001 03:00:00 GMT  
 Changing the location of an OLE object to point to somewhere else
I'm assuming that you're using the ActiveX Report Desginer in VB5/6
since it's the only Seagate tool that supports image swapping at run
time. You just need to pass a filespec that's in your dataset and
Crystal/VB will load the corresponding picture. Here's an excerpt from
the Crystal 7 developer help, but it should work for version 6 as well:

The OLEObject provides the FormattedPicture property for getting and
setting the current image displayed in an OLE object. This property can
only be accessed during the Format event for the report Section
containing the OLE image object.
The following examples demonstrate how to use the FormattedPicture

  Private Sub Section1_Format(ByVal pFormattingInfo As Object)
        Set Picture1.FormattedPicture = LoadPicture("Xtreme.bmp")
  End Sub

Note that if the image changes, the picture must be reloaded. OLE image
controls can be assigned bitmaps (bmp), Windows metafiles (wmf), JPEG
files (jpg), GIF files (gif), Icons (ico), and enhanced metafiles (emf).

Sun, 30 Sep 2001 03:00:00 GMT  
 [ 2 post ] 

 Relevant Pages 

1. Changing OLE Objects linked location

2. Changing the Database location at runtime for a report using OLE DB

3. Crystal Report: How to Set Location of OLE object at Run Time

4. Chicago Oracle Power Objects User Group - Notice Location Change

5. change cursor location of connection object back and forth

6. Run Time Change of DB Location, Setting Passwords, and Rpt Location

7. VBA-assigning an OLE-object to an Ole-object-field

8. ACC97-OLE objects-Server change-Problem part II

9. ACC97-OLE objects-Server change-Problem

10. Getting an accurate mouse point location?

11. Location Address to point to a Database file ?

12. Determining location of Insertion point on a form


Powered by phpBB® Forum Software