Solved

Datareporter - Images

Posted on 2001-07-30
22
321 Views
Last Modified: 2012-05-04
how can i populate an image box on my datareport on load of the image box depending on the value of a variable?
0
Comment
Question by:Grunge
  • 14
  • 6
  • 2
22 Comments
 
LVL 1

Author Comment

by:Grunge
Comment Utility
reword:

how can i populate an image box on load of my datareport depending on the value of
a variable?
0
 
LVL 1

Author Comment

by:Grunge
Comment Utility
With dtarptBarcodes.Sections("SB_Detail")
  .Controls("image1").Picture = LoadPicture("c:\vbtik.bmp")
  .Controls("image1").Picture = frmMain.Picture1.Picture
End With

neither of these methods work
0
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
have yopu tried:
set .Controls("image1").Picture = LoadPicture("c:\vbtik.bmp")
0
 
LVL 1

Author Comment

by:Grunge
Comment Utility
tried the 'set' command but it didn't work...thanks anyway
0
 
LVL 49

Expert Comment

by:Ryan Chong
Comment Utility
Hi Grunge,

The emoreau comment: Set .Controls("Image1").Picture = LoadPicture(myFilePath) work properly.

You can put the code on DataReport_Activate() event.

'Hope will help.
0
 
LVL 1

Author Comment

by:Grunge
Comment Utility
can u check that coz it seems not to work for me.

Thanks
0
 
LVL 1

Author Comment

by:Grunge
Comment Utility
Private Sub DataReport_Activate()


With dtarptBarcodes.Sections("SB_Detail")
Set .Controls("Image1").Picture = LoadPicture("c:\vbtik.bmp")
End With

End Sub


this does not work...
It doesn't offer an error message (infact I can step thorough) but there is no picture displayed...
0
 
LVL 49

Expert Comment

by:Ryan Chong
Comment Utility
Hi Grunge,

Try to use another picture/ different file type maybe to test whether it's the picture problem, bcos it work for me. Regards..
0
 
LVL 1

Author Comment

by:Grunge
Comment Utility
There is a problem then... i've tried it on two different development machines :?(
0
 
LVL 1

Author Comment

by:Grunge
Comment Utility
the image is to be a barcode this is because i cannot find a working free barcode true type font...
0
 
LVL 1

Author Comment

by:Grunge
Comment Utility
i have something that will create a barcode image...but not a font which would make things a whole lot easier :?)
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
Download http://download.cnet.com/downloads/0-10075-101-4004808.html?tag=st.dl.10075-100-4004808-4004808.dln.10075-110-4004808
and you will have these 5 fonts:
File Copy: C:\WINNT\Fonts\Bar25isa.ttf
File Copy: C:\WINNT\Fonts\Bar25sam.ttf
File Copy: C:\WINNT\Fonts\Bar39sam.ttf
File Copy: C:\WINNT\Fonts\Postalsa.ttf
File Copy: C:\WINNT\Fonts\Upcasamp.ttf
0
 
LVL 1

Author Comment

by:Grunge
Comment Utility
Yeah thats the thing except it has demo plastered across its output.... unfortunately our dev budget is exhausted
:'(
0
 
LVL 1

Author Comment

by:Grunge
Comment Utility
Yeah thats the thing except it has demo plastered across its output.... unfortunately our dev budget is exhausted
:'(
0
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
I have a font at home (a39t I think) which I found for free some years ago that I can send you if you give me your e-mail address.
0
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
There are a lot of free fonts at http://www.adams1.com/pub/russadam/fonts.html
0
 
LVL 1

Author Comment

by:Grunge
Comment Utility
cisdev@nwarks-hinckley.ac.uk   ;?)
0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 40 total points
Comment Utility
I didn't find on my PC (I have lost it because I reformatted a couple of times since) but you will surely find it at the site I gave you on 08/01/2001 09:39PM PST .

Have you see this other question: http://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20163745
0
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
Please maintain your history:

Questions Asked 17
Last 10 Grades Given B A A B A A A  
Question Grading Record 7 Answers Graded / 7 Answers Received
0
 
LVL 1

Author Comment

by:Grunge
Comment Utility
"Please maintain your history:

Questions Asked 17
Last 10 Grades Given B A A B A A A  
Question Grading Record 7 Answers Graded / 7 Answers Received "

is this directed at me?... what is this in reference to?

i'm goint to recheck that site you gave me....
my manager has authorised a purchase so i'm now looking for an affordable one.
0
 
LVL 1

Author Comment

by:Grunge
Comment Utility
We had strayed from the question here a bit... ideally..since i have a vb module that will create a barcode in an image format id like to use that as described above...
0
 
LVL 1

Author Comment

by:Grunge
Comment Utility
i found one finally! (off that big page u pointed out)

http://home.att.net/~daffy-duck/fonts/free3of9.zip

u need to use * at the start and end of the string

thanks all
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

744 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

18 Experts available now in Live!

Get 1:1 Help Now