Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

string length in pixels when drawing??

Posted on 2004-10-08
3
Medium Priority
?
225 Views
Last Modified: 2008-02-01
i want to be able to know how many pixels are within a specific font and size, im printing. my printing page will be separated into columns and i want to know when a specific string length has meet the pixel size length for the column(i have called this variable xincrease. does any one know how to work this out?



        Dim pageboundleft As Integer
        Dim pageboundright As Integer
        Dim pageboundtop As Integer
        Dim pageboundbottom As Integer

        pageboundleft = e.MarginBounds.Left
        pageboundright = e.MarginBounds.Right
        pageboundtop = e.MarginBounds.Top
        pageboundbottom = e.MarginBounds.Bottom

'gets column width in pixels?
        Dim xincrease As Integer = (pageboundright - pageboundleft) / (gridcolmax + 1)




   
0
Comment
Question by:evo14sale
[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 8

Accepted Solution

by:
wguerram earned 920 total points
ID: 12265971
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

715 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