Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
but what if i have constrained the web application in 800x600 and want to find pixel size of character with verdana font which is normally is installed in windows environment. is there any remedy in this case?
Posted
well.. you are quite right.. in fact i am trying to dynamically create table headers. now the width of each table header or say column is to be decided at run time depending upon the number of characters each header has. therefore i have to device some way to calculate the pixels . though i could hard code this thing but things are extra versatile at my end.
  • Administrators
Posted

Can't think of any easy way of managing that. Generally browser based apps suffer compared to windows based apps in the ease / capability of really controling the look and feel.

Maybe possible with either client side scripting or an embedded ActiveX control that could report information back to the server....

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted
i forgot to mention one thing that the table column widths are going to be set at server side not on client side and will be fixed for a certain type of dynamic data binding to table. and as i mentioned earlier, if i am just able to find the width in pixels equivalent to a character provided with verdana font and font size of 10, then rest of things can be managed. first the problem is to locate the exact mapping method.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...