0

I am creating a Simple Publisher Application in which I need to insert texts in different textbox from an array of strings .I have coded it like this .

    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 

Now It only populates first text box with the first string in the array (For 0th index) and rest textboxes contains empty strings ,though texts array has values.

Any help would be highly appreciated .

Thanks.

Sandeep Pathak
  • 10,567
  • 8
  • 45
  • 57

1 Answers1

0

Changed the code to C# and its working fine now...!!

Sandeep Pathak
  • 10,567
  • 8
  • 45
  • 57