Solved

Convert Text to Image (Automated)

Posted on 2010-11-10
3
492 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
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
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.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

760 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

21 Experts available now in Live!

Get 1:1 Help Now