Solved

VB Crystal Reports ...

Posted on 2001-06-14
5
237 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
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…

803 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