Solved

Convert Text to Image (Automated)

Posted on 2010-11-10
3
495 Views
Last Modified: 2012-05-10
Basically I have a list of a few hundred telephone numbers. I am wanting to create an image for each number without having to open paint and type the number then hit save a bunch of times. Is there a way to either

a) do this inside of excel?

b) use asp.net to accomplish this

c) use c# to accomplish this?

Thanks in advance for the help!
0
Comment
Question by:DotNetChano
[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
3 Comments
 
LVL 7

Expert Comment

by:JosephEricDavis
ID: 34102678
0
 
LVL 32

Accepted Solution

by:
Erick37 earned 500 total points
ID: 34102726
This should get you started.
Creates a bitmap, draws text, saves to file.

            private void button1_Click(object sender, EventArgs e)
            {
                  string s = "Test String";
                  Bitmap bmp = new Bitmap(100, 50);
                  Graphics g = Graphics.FromImage(bmp);
                  g.FillRectangle(Brushes.Black , 0, 0, bmp.Width,bmp.Height);
                  g.DrawString(s, new Font("Tahoma", 12), Brushes.White, new PointF(0, 0));
                  bmp.Save("c:\\test22.png",ImageFormat.Png);
                  g.Dispose();
                  bmp.Dispose();
            }
0
 
LVL 4

Author Closing Comment

by:DotNetChano
ID: 34103149
Thanks!
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

710 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