Home » Developer & Programmer » Forms » problem in inserting a data into word file
problem in inserting a data into word file [message #114748] Tue, 05 April 2005 08:11 Go to next message
SRM1
Messages: 13
Registered: February 2005
Location: Thane
Junior Member
Hello All,

Can anyone help me in inserting the data into the word document from the form ?
I am able to open the word document from the form..but don't understand how to insert the data like client-name ,client-address which are on the form into the word file..


thanks and regards,
SRM
Re: problem in inserting a data into word file [message #114854 is a reply to message #114748] Tue, 05 April 2005 19:29 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Try using Word's mail merge feature.

Put the place holders in a Word template, then using a file in the format of the mail merge data file (use a smart text editor to review a normal Word mail-marge data file to find the format), then open the template using your new data file and the data will be placed auto-magically for you.
Re: problem in inserting a data into word file [message #114876 is a reply to message #114748] Wed, 06 April 2005 00:56 Go to previous messageGo to next message
hsinghalmrt
Messages: 51
Registered: March 2005
Member
use text_io package for wriring the data onto the word file.
Re: problem in inserting a data into word file [message #115149 is a reply to message #114748] Thu, 07 April 2005 14:23 Go to previous message
Steve Corey
Messages: 336
Registered: February 2005
Location: RI
Senior Member
be careful with text_io packages. Integrating text_io with a binary file is inviting disaster, if you can even get it to work at all. Just out of curiosity, has anyone successully written to a Word document using TEXT_IO? What if you need to apply fonts or other attributes to text? How would you handle that?

Regards,
Steve
Previous Topic: form objects
Next Topic: multilined text boxes
Goto Forum:
  


Current Time: Thu Sep 19 18:08:43 CDT 2024