本文介绍了如何获得文本块的高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我有一个客户,我在几年前写了一个MS Access应用程序 他们需要知道一块文本的高度以英寸为单位 他们的客户。 MS Access应用程序在后台打开Word,进行一些 设置(字体,字体大小,边距等)并获得高度。这就是所有 在3年或4年内运作良好。 然而,整个事情将重新用于浏览器中 asp.net。我们希望消除为此使用Word的需要。为了这个,我想在vb.net中编写一个函数。整个过程将在Windows和Mac机器上运行。我在这里找到了一些信息: http://www.experts-exchange.com/Prog....NET/Q_2182000 8.html 但我不确定这是正确的做法。我希望有人 可以指出我正确的方向。 谢谢, Keith 解决方案 需要登录。无论如何,设备上的文件大小 机器使用哪个dpi设置和你想要哪个字体计算?我不能给ASP.Net特定的答案,但是我想b 认为必须首先询问问题。 Armin http://www.experts-exchange.com/Prog....NET/Q_2182000 需要登录。无论如何,设备上的文件大小 机器使用哪个dpi设置和你想要哪个字体计算?我不能给ASP.Net特定的答案,但是我想b 认为必须首先询问问题。 Armin http://www.experts-exchange.com/Prog....NET/Q_2182000 需要登录。无论如何,设备上哪个设备使用哪个dpi设置以及你想要计算哪种字体的文本大小?我不能给ASP.Net特定的答案,但我认为必须首先询问问题。 Armin I have a client that I wrote an MS Access app for quite a few years agowhere they need to know the height in inches of a block of text for billingtheir customers. The MS Access app opens Word in the background, makes somesettings (font, font size, margins, etc.) and gets the height. It''s allworked quite well for 3 or 4 years.However, the whole thing is going to be redone for use in browsers inasp.net with vb.net. We want to eliminate the need to use Word for this. I''dlike to write a function in vb.net for this. The whole thing is going to berun on both Windows and Mac machines. I found some info here: http://www.experts-exchange.com/Prog....NET/Q_21820008.htmlbut I''m not sure it''s the correct approach. I was hoping someonecould point me in the right direction.Thanks,Keith 解决方案Login required. Anyway, the size of the text on which device on whichmachine using which dpi settings and which font do you want tocalculate? I won''t be able to give an ASP.Net specific answer but Ithink the questions must be asked first.Armin http://www.experts-exchange.com/Prog....NET/Q_2182000Login required. Anyway, the size of the text on which device on whichmachine using which dpi settings and which font do you want tocalculate? I won''t be able to give an ASP.Net specific answer but Ithink the questions must be asked first.Armin http://www.experts-exchange.com/Prog....NET/Q_2182000 Login required. Anyway, the size of the text on which device on whichmachine using which dpi settings and which font do you want tocalculate? I won''t be able to give an ASP.Net specific answer but Ithink the questions must be asked first. Armin 这篇关于如何获得文本块的高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-05 13:21