How Do I???

Stimulsoft Reports.NET discussion
Post Reply
ZiggySlide
Posts: 3
Joined: Thu Jan 21, 2010 6:45 am
Location: Arlington TX

How Do I???

Post by ZiggySlide »

:matrix:

How do I go about adding JPG files to a report. the Location of the JPG file is stored in a Database as a link to a network location.

each report has multiple images.

I do not know how to build the report with code - we use the GUI interface

Any assistance is appreciated

Thanks in advance

Ziggy.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

How Do I???

Post by Edward »

Hi Ziggy,

Please do the following:

Double click the Image component in the Designer.
Click 'Image Data' tab.

Add the following code there:

{Image.FromFile(DataSource.DataColumnWithPathToImage)}

Thank you.
ZiggySlide
Posts: 3
Joined: Thu Jan 21, 2010 6:45 am
Location: Arlington TX

How Do I???

Post by ZiggySlide »

Ed,

I tried to figure out what you are meaning, but am not seeing it.

We are using Reports.net 2009.1.400
.Net Framework v.2.0.50727

currently the report was setup to pull in a "DXF" file.

with

1. Image
Data Column "abc" Command.Drawing

I tried inserting your code there with no success.

we are using and SQL Database w/ Multiple Servers holding information for a given report.

this seems to be my biggest stumbling block

the image location would be as follows in the database

Table = Parts
Colomn = InfoLink1
a path the a JPG file is specified for each individual "Part"

Do I need to create a new Command?

Again - I am NEW to this software - so any Assistance is appreciated

Thank You

Ziggy
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

How Do I???

Post by Edward »

Hi

Please see attached picture:

If the path is contained in the DataColumn, then this will work:

Thank you.
Attachments
319.ImageFromPathInDataColumn.png
319.ImageFromPathInDataColumn.png (37.97 KiB) Viewed 2137 times
Majid000
Posts: 7
Joined: Fri Apr 09, 2010 3:59 am
Location: Iran

How Do I???

Post by Majid000 »

hi my dear friends ...
i test the below code
but i got this error ... ->

c:\Documents and Settings\Majid\Local Settings\Temp\hw1u-wfy.0.cs(195,30) : error CS0117: 'Stimulsoft.Report.Components.StiImage' does not contain a definition for 'FromFile

i am using stimulreport 2010 ultimate...
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

How Do I???

Post by Jan »

Hello,

Please use following expression:

Code: Select all

{System.Drawing.Image.FromFile("123.jpeg")}
Thank you.
Post Reply