Poser une questionPoser une question
 

QuestionLarge textinput in formfields

  • mercredi 4 novembre 2009 14:09Henk Wisselink Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     A du code
    I am automating text input into a Word-document with VB6 with the following code:

    Dim objDoc As Word.Document
    Dim sVar As String
    .....(open a Word document with textinput form fields)...
    objDoc.FormField(1).TextInput.Width=0   'unlimited text length
    odjDoc.FormField(1).Result = sVar
    As long as sVar has less then 256 characters this works, but with more than 256 characters a runtime '4609' text too long occurs.
    Manually in WORD I can enter as many characters as I want in the text formfield, but for some reason the automation will not work.
    Can anyone tell me why I cannot assign more than 256 charcters?



    • DéplacéJeff ShanMSFTvendredi 6 novembre 2009 01:39vb6 question (From:Visual Basic General)
    •  

Toutes les réponses