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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Dynamic Image To Report

Status
Not open for further replies.

JoeZ430

Technical User
Jan 4, 2005
51
US
I am new to Actuate and was wondering if anybody could give me an example or guide me to being able to dynamically add images to Actuate reports.

Thanks,

Joe
 
I have found the answer. Just incase somebody else wants to be able to do this. Thanks


E: How to put dynamic image?
Posted by rutger.mons on 2/10/2006 3:22:00 PM

Quote a snippet from our software Maximo,hope this helps

roger

1. With he report open in eRDPro, add an AcImageControl to the report

(a) Under the properties for this control, leave the Filename property
empty.

(b) Set EmbeddedProperty to ImageFactoryTime

(c) Click the methods tab and locate the Sub OnRow. Click Override and
insert the following code:

if row.getvalue("workorder_siteid") = "BEDFORD" then
FileName = "BEDFORDLogo.bmp"
else
Filename = "TEXASLogo.bmp"
end if

(d) Click Update and Close to close the component editor.

2. Next, you will need to add an entry to the acserverconfig.xml on the
Actuate server for the search path - this path will be the location
where the images are stored on the server. You can use either an
absolute path (c:\maximo_images) or a UNC path
(\\servername\maximo_images). If using UNC, ensure you can access the
files by going to Start | Run and typing in the UNC path.

(a) On the Actuate server, navigate to the Actuate7\Server\etc folder

(b) Open the acserverconfig.xml file with Notepad or Wordpad.

(c) Go to the Server section. It should appear as follows:

<Servers>
<Server
Name="end00591"
PMDPort="9100"
OSVersion="Solaris 8"
ActuateBuild="60F040316"
LogDirectory="D:\Actuate6\Server/log"
PMDIPAddress="end00591"
ActuateVersion="6 Service Pack 1"
ServerIPAddress="end00591"
RequesterRSAPIVolume="end00591">
<ReportingService
.....

(d) Prior to the ReportingService entry, add the following (replacing
the path in the Item tag with your path to the images):

<ConnConfigSearchPath

SettingType="List">
<Item>\\myserver\maximo_images</Item>
</ConnConfigSearchPath>

The end result should appear as follows:

<Servers>
<Server
Name="end00591"
PMDPort="9100"
OSVersion="Solaris 8"
ActuateBuild="60F040316"
LogDirectory="D:\Actuate6\Server/log"
PMDIPAddress="end00591"
ActuateVersion="6 Service Pack 1"
ServerIPAddress="end00591"
RequesterRSAPIVolume="end00591">
<ConnConfigSearchPath
SettingType="List">
<Item>\\myserver\maximo_images</Item>
</ConnConfigSearchPath>
<ReportingService

(e) Restart the Actuate Process Management Daemon Service (PMD).



-----Original Message-----
From: Topher via actuate-l [mailto:<email@removed>]
Sent: Friday, February 10, 2006 4:39 PM
To: Mons Rutger
Subject: [actuate-l] RE: How to put dynamic image?

# U.S. urged to remain tech leader
# Read News:
# View Group Archive:
You need to add a section to your acserverconfig.xml file under the
server tag
<ConnConfigSearchPath SettingType="List">
<Item>c:\Program Files\Actuate7\Server\images</Item>
</ConnConfigSearchPath>

then you can reference any images you have saved in the directory. Also
there is a property of the image control that should be set to
ImageViewTime


---------------Original Message---------------
>Hi.
>
>I want put the dynamic images in my report which get from theappropriate path.
>
>Example when display worknumber001, it display image 001.jpg. Whendisplay worknumber002, it display image 002.jpg.
>
>The path will be "../../images/001.jpg". The database just store the
>image name. Ex. 001.jpg
>
>May I know how to do it? I need it urgently.
>
>Thanks.
>
>
>
>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top