Solved

VB Crystal Reports ...

Posted on 2001-06-14
5
236 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
5 Comments
 
LVL 18

Accepted Solution

by:
bobbit31 earned 100 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Upgrading VB6 to VB.Net: Replace VB6 API's and Hidden functions with VB.Net Upgrade? 8 68
Input past end of file vbs script 9 81
MsgBox 2 47
message box in access 4 41
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

919 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now