Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quick Transfer of Losts of VFP Data to Word Table?
Message
From
12/10/2001 17:49:08
Isabel Cabanne
Hubbard Woods Software, Inc.
Winnetka, Illinois, United States
 
 
To
12/10/2001 12:46:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00567281
Message ID:
00568010
Views:
14
>>I have an application in which I use Word as the destination of all reports. All data ends up in tables in Word docs. I started out transferring data from VFP to Word through Excel, which had acceptable performance, but need to change that, as Word appears to need Excel (or at least some tools) to import the Excel spreadsheet. I cannot require the user to have Excel.
>>
>>Do you have a quick way of transferring lots of data from VFP into Word tables? I have tried a cell by cell approach but it takes an unacceptable amount of time. I need a generic routine that does not require knowing the table layout, and allows any ordinary data type. Delimited files don't work either, as VFP adds quotation marks around character data and Word does not strip them out. Can XML be used in any way?
>>
>>Thanks for the help,
>>Isabel
>
>Isabel,
>If your data doesn't have memo fields then fastest way I know of is to copy to a tab delimited file, open in word and ConvertTextToTable.
>If it has memo than you could either first write to a text file lowlevel and again open in word, convert to table or make an ADO connection to your table (slower then another approach of saving as HTML and opening in word).
>If Excel is an option too then do not try HTML approach.
>Cetin

Cetin,

Thanks. I have a small number of reports with memo fields which I cover with custom objects. However, my biggest problem comes with lots of embedded returns within character strings. Using ConvertTextToTable creates very whacky, and very incorrect, tables when you have embedded returns. (See my return message to Tamar for more on this problem.)

Isabel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform