?
Solved

VB Crystal Reports ...

Posted on 2001-06-14
5
Medium Priority
?
245 Views
Last Modified: 2010-05-02
I need to know how to change a picture on a Crystal Report document with VB ...
0
Comment
Question by:AndySulz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 18

Accepted Solution

by:
bobbit31 earned 400 total points
ID: 6191907
if you are using crystal reports 8 or higher:

i'm not sure if you can change the picture on the report... rather, you wouldn't put one on at all at design time and would do something like this during run-time to add the picture:

Dim myCR as new CRAXDRT.Application
Dim myRpt as CRAXDRT.Report

set myRpt = myCR.openReport ("<path to report>")

myRpt.Sections(<whatever section>).addPictureObject "<path to picture>", <left>, <top>

HOWEVER, this is not part of the royalty free runtime so you will have to pay a licensing fee to do this.

You can try and play around with it a little and i'm very interested if you can find a solution since it would be very helpful with some work i'm doing with richtextbox control.  Basically, the picture on the report is an ole object and i believe it's a device independant bitmap.  Maybe (but i doubt it) you can work with the ole object to change the picture.  I hope you can!

good luck
0
 
LVL 2

Author Comment

by:AndySulz
ID: 6196603
I am using a 7.0 control ...
0
 
LVL 2

Author Comment

by:AndySulz
ID: 6771759
because
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7136146
Hi AndySulz,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will suggest to:

    Accept bobbit31's comment(s) as an answer.

AndySulz, if you think your question was not answered at all or if you need help, you can simply post a new comment here.  Community Support moderators will follow up.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7173333
Comment from expert accepted as answer

Computer101
E-E Moderator
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month14 days, 9 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question