Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 145339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:24:22+00:00 2026-05-11T08:24:22+00:00

My goal is to create an eBook that I can read with the Mobipocket

  • 0

My goal is to create an eBook that I can read with the Mobipocket reader on my Blackberry. The problem is that my text includes UTF-8 characters which are not supported on the Blackberry, and therefore display as black boxes.

The eBook will contain a list of English and Punjabi words for reference, such as:

bait          ਦਾਣਾ baked       ਭੁੰਨਿਆ balance     ਵਿਚਾਰ 

One thought I had was to write the list to an HTML table with the Punjabi converted into a GIF or PNG file. Then include this HTML file in the eBook. All of the words currently exist in an access database, but could easily be exported to another form for input to the generation routines.

QUESTION: Using VB, VBA or C#, how hard would it be to write a routine create the images and then output an HTML file containing the English words and images in a table

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:24:23+00:00Added an answer on May 11, 2026 at 8:24 am

    Using VB

    Sub createPNG(ByVal pngString As String, ByVal pngName As String)  ' Set up Font Dim pngFont As New Font('Raavi', 14)  ' Create a bitmap so we can create the Grapics object  Dim bm As Bitmap = New Bitmap(1, 1) Dim gs As Graphics = Graphics.FromImage(bm)  ' Measure string. Dim pngSize As SizeF = gs.MeasureString(pngString, pngFont)  ' Resize the bitmap so the width and height of the text  bm = New Bitmap(Convert.ToInt32(pngSize.Width), Convert.ToInt32(pngSize.Height))  ' Render the bitmap  gs = Graphics.FromImage(bm) gs.Clear(Color.White) gs.TextRenderingHint = TextRenderingHint.AntiAlias gs.DrawString(pngString, pngFont, Brushes.Firebrick, 0, 0) gs.Flush()   'Saving this as a PNG file Dim myFileOut As FileStream = New FileStream(pngName + '.png', FileMode.Create) bm.Save(myFileOut, ImageFormat.Png) myFileOut.Close() End Sub 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My goal is to create a trait that a case class can extend, which
My goal is to create some kind of swing component that can do two
Backstory: Goal: create a triangular shadow that can be applied via CSS and is
My goal is to create a map of maps so that I can retrieve
High Level Goal: Create a single Maven Web Application project that can be used
My goal is to create an entry form (addnew.php) that will allow me to
The goal is to create a mock class which behaves like a db resultset.
The goal is to create a program which will effectively let the user create
My goal is to create a C# winform application which has rounded panel, rounded
My goal is create a graph that will hide and show a series depending

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.