0
我正在创建一个简单的发布服务器应用程序,我需要在字符串数组中插入不同文本框中的文本。我已将它编码为这样。Vb.Net MS发布者字符串数组到文本框问题
Dim texts(40) As String 'Array of strings to be inserted
shpTextBox = appPub.ActiveDocument.Pages(pageIndex).Shapes.AddTextbox _
(Orientation:=PbTextOrientation.pbTextOrientationHorizontal, _
Left:=pbShape.Left - 20, Top:=pbShape.Top, _
Width:=72, Height:=18)
'add text
shpTextBox.TextFrame.TextRange.Text = texts(Index)'Problem here , Only First array value is populating to very first text box , rest are empty strings.
Index = Index + 1
现在只填充第一个文本框与数组中的第一个字符串(第0指数)和休息的文本框包含空字符串,虽然文本数组值。
任何帮助将不胜感激。
谢谢。
您在顶部有文本(40),但是您在shpTextBox中放置的是typeText。澄清? – 2011-05-14 15:02:01
感谢您指出,其文本(索引)..! – Muse 2011-05-16 09:32:50
已编辑它。谢谢。现在寻找解决方案..! – Muse 2011-05-16 09:33:58