Tag: vb.net 2010

导出一个报告,从lightswitch excel,并试图在Excel中创build一个边框

我一直在尝试使用电灯开关在Excel中创build边框。 我创build的文件没有问题,我能够格式化文件,但我想要的。 但是,当把excel边框放在excel上时,我似乎无法做到 **Imports System.Runtime.InteropServices.Automation Imports System.Collections.Specialized** **With excel.Range("A5:M6") .Borders(excel.XlBordersIndex.xlInsideVertical).LineStyle = excel.XlLineStyle.xlContinuous End With** 有我使用的代码,以上是它的口号,因为我说eveything很好地禁止边界的创build。 系统不喜欢XlBordersIndex“调用XlBordersIndex – 找不到成员时出错”。 有什么我需要保证我已经从相当一段时间谷歌,找不到任何微软灯开关