INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Add / Insert text to jpeg images with VBA

Add / Insert text to jpeg images with VBA

(OP)
Hello All, I am novice to VBA and really want to write a simple VBA code to achieve below objective.



Your help is grateful.

Snow

RE: Add / Insert text to jpeg images with VBA

Hi,

What application?

Skip,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

RE: Add / Insert text to jpeg images with VBA

(OP)
I am saving captures (screens) from CATIA to JPEG file format and want to put above text on the jpeg images before printing them out. I can not find commands/functions in CATIA to put text on the captures. So, I hope VBA can help me out.

Thank you

Ssnowww

RE: Add / Insert text to jpeg images with VBA

You have VBA in Excel, Word, Power Point, and many other products/applications.
You did not answer Skip's question.

Have fun.

---- Andy

There is a great need for a sarcasm font.

RE: Add / Insert text to jpeg images with VBA

(OP)
Application....? you mean which software/application I used to create jpeg image from?

I use CATIA V5 which has VBA 6.5 inside it. I use VBA module inside CATIA to capture the screens (one by one) and those captures are saved to jpeg images with VBA code.

Is my explanation clear enough. If not, please let me know.

Regards

Snnnowwwwww

RE: Add / Insert text to jpeg images with VBA

Quote:

I can not find commands/functions in CATIA to put text on the captures. So, I hope VBA can help me out.

VBA is a programmatic way to use features of a program that exist.

If features do not exist VBA can't cause them to exist.

That is to say, if you can't annotate a jpeg with CATIA manually then you can't do so with VBA.

There are many programs that can annotate jpeg files, and I'm sure at least one is VBA compatible.

RE: Add / Insert text to jpeg images with VBA

(OP)
the main software CATIA, where the images/captures are taken, does not have commands to annotate manually. However, the CATIA DMU Navigator (one of many modules inside CATIA licenses) has commands to annotate the captures (not jpeg). However, after I make captures inside main software CATIA and switch those captures in the CATIA DMU Navigator, the annotation commands in the CATIA DMU Navigator do not work.

I have googled up online and searched for help inside the CATIA itself but seems to be no help.

Do you have any idea?
PLease point me to a software or VBA that can add above text onto the jpeg images.

Thank you in advance.

RE: Add / Insert text to jpeg images with VBA

"PLease point me to a software or VBA that can add above text onto the jpeg images."

You may do that simply in Window's Paint 'by hand'. Use an icon with an "A": Text - insert text into the pictures, but there is no VBA there. sad

Have fun.

---- Andy

There is a great need for a sarcasm font.

RE: Add / Insert text to jpeg images with VBA

(OP)
I really want to add text during making the captures inside CATIA via VBA code since I can make captures with VBA code inside CATIA software....this is sad.

I have seen a short executable code that my workplace does include the text on the captures/images but that code existed for years and I did not know who created the code. However, that code did not suit my need.

RE: Add / Insert text to jpeg images with VBA

So what about the old code that does not suit your needs, does not suit your needs?

Skip,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

RE: Add / Insert text to jpeg images with VBA

(OP)
it printed the text and graphics on the captures so tiny that you can not read and recognize. So, I decide to make my own code, which get to the point of making jpeg images and stuck at adding text to the image.

RE: Add / Insert text to jpeg images with VBA

You ought to be able to modify that code.

Skip,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

RE: Add / Insert text to jpeg images with VBA

(OP)
Really love to have it but I do not have the source code, so I can not modify it. I only have the .exe file...I am thinking to decompile it to get the source code but do not know how since I am a computer programmer myself.

Do you have any idea.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close