/ Forums / Advansys Formativ / Creating Solutions with Formativ / Listing the contents of a folder to a Word document – problem with script

  • Creator
  • #3857

    Hi :-)

    I am interested in potentially using Formativ to list the contents of a folder to a Word document.

    I discovered on the Novell Groupwise Cool Solutions site that you could list the contents of a folder using Formativ and a specially developed applet (publish folder list to ms word). So I downloaded the trial version to try it out and the applet. However, when I run this applet I get an error (the other applets worked fine). The error I get is at line 260 and is as follows:

    Formativ Applet runtime error
    Wrong number of arguments or invalid property assignment: ‘Word.ActiveDocument.Tables.Add’ at line 260, column 2

    I have not modified the file at all as I don’t know anything about scripting. The actual line is as follows:

    set Table = Word.ActiveDocument.Tables.Add(Word.Selection.Range,TableRow,TableColumn,wdWord9TableBehavior,wdAutoFitFixed)

    I was wondering if there is anyone out there familiar with the above script and if they had a problem with it and (hopefully) a solution to the above. Apologies for my ignorance on the above.

    Thank you :-)

  • Author
  • #6421
    Support 1a

    We haven’t received any other reports of problems with this applet, so I suspect it may be something environmental.

    To assist in troubleshooting, what version of Microsoft Word are you using?

    We look forward to your response.

    Advansys Support


    Dear Sir,

    Thank you very much for replying to my post 🙂
    Sorry for not replying sooner but I have not been at my desk until now.

    I am using Word 97 SR-1. If you need any more information please don’t hesitate to ask.

    Thanking you 🙂

    Support 1a

    Thanks for the additional information. We are currently investigating this problem and will report our finding here as soon as possible.


    Advansys Support

    Support 2

    It appears that Word 97 does not allow us to set shading and styles that we used in the applet. We’ve updated the applet, which now checks the Word version and, if it is Word 97, then the applet will not set the shading and color.

    We sent you the applet direct via email and thank you for the return email which confirms that it solves your problem. We will make this update available in the next release of Formativ.

    Best regards,

    Advansys Support


    Hello !
    I also have a problem with that applet.
    On NT4SP6a and W2KSP2 running Word97SR2 it just create a new doc with:
    Time: 15:38:12
    Date: vendredi, 18. octobre 2002
    Folder: Mailbox
    (‘#’ = messages with attachments)

    as a content.
    The applet’s popup state it exported xx mail, but in fact nothing is in the doc.

    Support 2

    We have not been able to reproduce the problem under Win2K. Perhaps it could be related to a language issue, but this is just a guess at this stage. I will pass this onto the engineering team to see if they can offer further suggestions.

    Do you happen to have a machine with Word 2000 (or later) installed to check if the same problem occurs?


    Advansys Support


    I get the same errors as user gmolloy, the Runtime error, and it generates the same text in Word as user bgateux (above).

    I am running NT40SP6 and Word 97SR-2 and Formativ 1.0.

    Is there a version of this applet that will work for our system?

    Thank you,


    Support 2

    We will conduct further research with Word 97 to see if we can replicate then solve the problem. Once complete, the results will be posted here.


    Advansys Support

    Support 1a

    The code that checked the version of Word in the Publish folder list applet would not correctly identify Word 97 SR2. (It could identify Word 97 SR1). The failure to identify the correct version would result in the applet functioning as if Word 2000 was installed, resulting in errors for Word 97 SR2 users.

    We have updated the applet so that it correctly identifies patched variations of Word 97 and 2000. We will be emailing this version directly to users we can identify in this thread. The updated version will also be available as part of the standard Formativ installation in the very near future.

    We apologies for any inconvenience.

    Advansys Support

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.