Page 1 of 1
How Do I???
Posted: Thu Jan 21, 2010 6:54 am
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.
How Do I???
Posted: Thu Jan 21, 2010 11:50 am
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.
How Do I???
Posted: Wed Jan 27, 2010 8:12 am
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
How Do I???
Posted: Wed Jan 27, 2010 2:19 pm
by Edward
Hi
Please see attached picture:
If the path is contained in the DataColumn, then this will work:
Thank you.
How Do I???
Posted: Sat Apr 10, 2010 2:01 pm
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...
How Do I???
Posted: Sun Apr 11, 2010 1:58 pm
by Jan
Hello,
Please use following expression:
Code: Select all
{System.Drawing.Image.FromFile("123.jpeg")}
Thank you.