473,503 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Showing Images Dynamiclly in Crystal Report

48 New Member
Hello all,
I am using vb.net 2.0 I have to show the image of user in crystal report ,I have save the path of image in database .

Thanks in advanced
Jun 15 '07 #1
5 7004
dip_developer
648 Recognized Expert Contributor
Hello all,
I am using vb.net 2.0 I have to show the image of user in crystal report ,I have save the path of image in database .

Thanks in advanced
If ur images are in database then u dont have to do anything
special. you can design ur report just by dragging and dropping fields on
report as you do in case of a Text or Integer table field.

One more thing ....As far my knowledge Crystal report does not support GIF image format...
Jun 15 '07 #2
Rohit111111
48 New Member
If ur images are in database then u dont have to do anything
special. you can design ur report just by dragging and dropping fields on
report as you do in case of a Text or Integer table field.

One more thing ....As far my knowledge Crystal report does not support GIF image format...

Hi thanks for reply,but I have full image path in my database ,now how can i display image by its path
Jun 15 '07 #3
dip_developer
648 Recognized Expert Contributor
Hi thanks for reply,but I have full image path in my database ,now how can i display image by its path
make a Section object with events.You can set the section number of your report where you want to display your image.Suppose myReport is the report object....then follow the code...

Expand|Select|Wrap|Line Numbers
  1.  
  2. dim appl as myReport.application
  3. dim rpt as myReport.report
  4. dim withevents sect as myReport.section
  5. ' change section10 to name of the section where picture is displayed
  6. private sub form_load()
  7.     set appl=new myReport.applicaiton
  8.     set rpt=appl.openreport(app.path & "\reportname.rpt")
  9.     set sect=rpt.sections("Section10")
  10. end sub
  11.  
  12.  
now set the picture and location :

Expand|Select|Wrap|Line Numbers
  1.  
  2. sect.reportobjects.item("picture1").setolelocation .item("fldPath").value
  3.  
picture1 is the name of the oleobject you inserted, and fldpath is the name of the table field where you have path to image
Jun 15 '07 #4
Rohit111111
48 New Member
make a Section object with events.You can set the section number of your report where you want to display your image.Suppose myReport is the report object....then follow the code...

Expand|Select|Wrap|Line Numbers
  1.  
  2. dim appl as myReport.application
  3. dim rpt as myReport.report
  4. dim withevents sect as myReport.section
  5. ' change section10 to name of the section where picture is displayed
  6. private sub form_load()
  7.     set appl=new myReport.applicaiton
  8.     set rpt=appl.openreport(app.path & "\reportname.rpt")
  9.     set sect=rpt.sections("Section10")
  10. end sub
  11.  
  12.  
now set the picture and location :

Expand|Select|Wrap|Line Numbers
  1.  
  2. sect.reportobjects.item("picture1").setolelocation .item("fldPath").value
  3.  
picture1 is the name of the oleobject you inserted, and fldpath is the name of the table field where you have path to image
It does't work Can tell me step by step what I have to do actually I am very new to crystal report
Jun 15 '07 #5
Rohit111111
48 New Member
It does't work Can tell me step by step what I have to do actually I am very new to crystal report
Hi please give me some solution as soon as possible please
Jun 15 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1800
by: Michael | last post by:
I followed the solution document at the http://support.businessobjects.com/library/kbase/articles/c2015079.asp?ref=devzone_netzone_howto .. However, the Crystal Report prompt is still showing. The...
0
1196
by: murl | last post by:
I have created a crystal report using crystal9.0, that is linked to a stored procedure in sql2k which requires 2 parameters to be met, a beggining date(smalldatetime) and a...
0
1498
by: murl | last post by:
I have built a crystal report using crystal9.0 that is linked to a stored procedure built in sql2k, which requires 2 parameters beginningdate(smalldatetime),and endingdate(smalldatetime). When the...
0
1426
by: murlbrown | last post by:
I have built a report using Crystal Report 8.0, which is set to get its data from a MS SQL Stored Procedure with 1 Parameter(smalldatetime). I can get the report to display in crystal with data,...
2
3137
by: Delali Dzirasa | last post by:
I am a newbie and am creating my first asp.net in crystal reports. I have created the report (.rpt file) and have dropped the CrystalReportViewer on the web form. From the databinding...
1
4579
by: lewindha | last post by:
Hi guys I am new to ASP and .Net. I am working a web app where some Crystal Reports will be incorporated. Right now I am trying to get a simple report with a bar graph to show up in a browser....
2
3112
by: ashok.ponnusamy | last post by:
i am using crystal report in my aspx page. i am using stored procedure to generate the report. it's work fine and shows the result based on parameter input. but it doesn't show any reportviewer...
0
1828
by: Sridhar | last post by:
Hi, I have a Crystal Report which has two sub reports in it. When I try to view this Crystal Report in my local computer, it is showing data for sub reports also. But when I deploy it to the web...
0
5038
by: Big George | last post by:
I'm developing with ASP.NET, VS.NET 2003. Using Crystal Report for VS.NET DataBase: Oracle 10g I store a BLOB field in a table. This field store images, like jpg files. The Stored Procedure...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7074
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7273
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7322
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6982
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7451
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1501
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
374
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.