本文介绍了如何通过VB.NET在excel中生成水平线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 限时删除!! 您好, 我目前正在开发一个导出excel文件的VB.NET项目。 给这个excel提交一些结构,我想在excel工作表中添加的水平线。到目前为止,我不知道如何做到这一点,谷歌没有 似乎支持我寻找答案:P 任何想法或者可能采用不同的方法? 问候, Rudy 我尝试过: 搜索类似的问题。解决方案 我发现这个在C#中,不确定它是什么你想要,但至少知道怎么做? // Zdenek 更简单的方法是添加边框 [ ^ ] 。 oSheet.Range( A1:E1)。Borders(xlEdgeBottom).LineStyle = Excel.XlLineStyle.xlDot Hello,I'm currently working on a VB.NET project which exports an excel file.To give this excel file some structure, i want to add horizontal lines inthe excel worksheet. So far i have no clue how to do this and google doesn'tseem to support my search for an answer :PAny ideas or maybe a different approach?Greetings,RudyWhat I have tried:Searching for similar problems. 解决方案 I found this in C#, not sure if it is what do you want, but at least an idea how to do it?//ZdenekMuch simpler way is to add borders[^] around the cell (or range of cells).oSheet.Range("A1:E1").Borders(xlEdgeBottom).LineStyle = Excel.XlLineStyle.xlDot 这篇关于如何通过VB.NET在excel中生成水平线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 1403页,肝出来的..
09-06 23:02