DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Reading an Input File

  1. #1
    Nicholas Guest

    Reading an Input File


    Have created a little application in Word 2000 using a User Form embedded
    (VBA)in a word document template to provide a series of variables that populates
    a word document. Have the requirement to create a number of word documents
    using the same template in a repetitive manner.

    Is there some easy way I can put these values into an input file and read
    the input file from start to finish to create a series of word documents
    ?

    Ideally if anyone has an example I can peruse, I should be able to reverse
    engineer/modify and work out how to achieve the effect I require.

    Thanks in advance for any assistance.

    Cheers....

  2. #2
    challis Guest

    Re: Reading an Input File


    Hi


    Look in the help files for Put, Input #, Write #, Read #.
    There should be an example in one of them, if you really do require sample
    code, e-mail me and I will write some quickly.

    challis


    "Nicholas" <nicholas.pinakis@srd.wa.gov.au> wrote:
    >
    >Have created a little application in Word 2000 using a User Form embedded
    >(VBA)in a word document template to provide a series of variables that populates
    >a word document. Have the requirement to create a number of word documents
    >using the same template in a repetitive manner.
    >
    >Is there some easy way I can put these values into an input file and read
    >the input file from start to finish to create a series of word documents
    >?
    >
    >Ideally if anyone has an example I can peruse, I should be able to reverse
    >engineer/modify and work out how to achieve the effect I require.
    >
    >Thanks in advance for any assistance.
    >
    >Cheers....



  3. #3
    challis Guest

    Re: Reading an Input File


    Hi

    There is a better way of storing the information though. I suggest you use
    a recordset or xml. The recordset is my method of preference (I am not proficient
    enough in xml). The ADO recordset can be created in memory and stored on
    the hard drive. No physical database is required.

    I found an article on msdn in the periodicals section I think. Inside Visual
    Basic "(April 2000) Store ADO REcordset Data Without a Database by Jason
    A Fisher"

    challis

    "Nicholas" <nicholas.pinakis@srd.wa.gov.au> wrote:
    >
    >Have created a little application in Word 2000 using a User Form embedded
    >(VBA)in a word document template to provide a series of variables that populates
    >a word document. Have the requirement to create a number of word documents
    >using the same template in a repetitive manner.
    >
    >Is there some easy way I can put these values into an input file and read
    >the input file from start to finish to create a series of word documents
    >?
    >
    >Ideally if anyone has an example I can peruse, I should be able to reverse
    >engineer/modify and work out how to achieve the effect I require.
    >
    >Thanks in advance for any assistance.
    >
    >Cheers....



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center